"Fossies" - the Fresh Open Source Software Archive

Member "arangodb-3.4.7/Documentation/Examples/RestExplainWarning.generated" (24 Jun 2019, 8902 Bytes) of package /linux/misc/arangodb-3.4.7.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "RestExplainWarning.generated": 3.3.21_vs_3.4.2-1.

    1 <span class="hljs-meta">shell&gt;</span><span class="bash"> curl -X POST --header <span class="hljs-string">'accept: application/json'</span> --data-binary @- --dump - http://localhost:8529/_api/explain</span> &lt;&lt;EOF
    2 { 
    3   <span class="hljs-string">"query"</span> : <span class="hljs-string">"FOR i IN 1..10 RETURN 1 / 0"</span> 
    4 }
    5 EOF
    6 
    7 HTTP/<span class="hljs-number">1.1</span> OK
    8 content-type: application/json; charset=utf<span class="hljs-number">-8</span>
    9 x-content-type-options: nosniff
   10 
   11 { 
   12   <span class="hljs-string">"plan"</span> : { 
   13     <span class="hljs-string">"nodes"</span> : [ 
   14       { 
   15         <span class="hljs-string">"type"</span> : <span class="hljs-string">"SingletonNode"</span>, 
   16         <span class="hljs-string">"dependencies"</span> : [ ], 
   17         <span class="hljs-string">"id"</span> : <span class="hljs-number">1</span>, 
   18         <span class="hljs-string">"estimatedCost"</span> : <span class="hljs-number">1</span>, 
   19         <span class="hljs-string">"estimatedNrItems"</span> : <span class="hljs-number">1</span> 
   20       }, 
   21       { 
   22         <span class="hljs-string">"type"</span> : <span class="hljs-string">"CalculationNode"</span>, 
   23         <span class="hljs-string">"dependencies"</span> : [ 
   24           <span class="hljs-number">1</span> 
   25         ], 
   26         <span class="hljs-string">"id"</span> : <span class="hljs-number">2</span>, 
   27         <span class="hljs-string">"estimatedCost"</span> : <span class="hljs-number">2</span>, 
   28         <span class="hljs-string">"estimatedNrItems"</span> : <span class="hljs-number">1</span>, 
   29         <span class="hljs-string">"expression"</span> : { 
   30           <span class="hljs-string">"type"</span> : <span class="hljs-string">"range"</span>, 
   31           <span class="hljs-string">"typeID"</span> : <span class="hljs-number">49</span>, 
   32           <span class="hljs-string">"subNodes"</span> : [ 
   33             { 
   34               <span class="hljs-string">"type"</span> : <span class="hljs-string">"value"</span>, 
   35               <span class="hljs-string">"typeID"</span> : <span class="hljs-number">40</span>, 
   36               <span class="hljs-string">"value"</span> : <span class="hljs-number">1</span>, 
   37               <span class="hljs-string">"vType"</span> : <span class="hljs-string">"int"</span>, 
   38               <span class="hljs-string">"vTypeID"</span> : <span class="hljs-number">2</span> 
   39             }, 
   40             { 
   41               <span class="hljs-string">"type"</span> : <span class="hljs-string">"value"</span>, 
   42               <span class="hljs-string">"typeID"</span> : <span class="hljs-number">40</span>, 
   43               <span class="hljs-string">"value"</span> : <span class="hljs-number">10</span>, 
   44               <span class="hljs-string">"vType"</span> : <span class="hljs-string">"int"</span>, 
   45               <span class="hljs-string">"vTypeID"</span> : <span class="hljs-number">2</span> 
   46             } 
   47           ] 
   48         }, 
   49         <span class="hljs-string">"outVariable"</span> : { 
   50           <span class="hljs-string">"id"</span> : <span class="hljs-number">2</span>, 
   51           <span class="hljs-string">"name"</span> : <span class="hljs-string">"1"</span> 
   52         }, 
   53         <span class="hljs-string">"canThrow"</span> : <span class="hljs-literal">false</span>, 
   54         <span class="hljs-string">"expressionType"</span> : <span class="hljs-string">"simple"</span> 
   55       }, 
   56       { 
   57         <span class="hljs-string">"type"</span> : <span class="hljs-string">"CalculationNode"</span>, 
   58         <span class="hljs-string">"dependencies"</span> : [ 
   59           <span class="hljs-number">2</span> 
   60         ], 
   61         <span class="hljs-string">"id"</span> : <span class="hljs-number">4</span>, 
   62         <span class="hljs-string">"estimatedCost"</span> : <span class="hljs-number">3</span>, 
   63         <span class="hljs-string">"estimatedNrItems"</span> : <span class="hljs-number">1</span>, 
   64         <span class="hljs-string">"expression"</span> : { 
   65           <span class="hljs-string">"type"</span> : <span class="hljs-string">"value"</span>, 
   66           <span class="hljs-string">"typeID"</span> : <span class="hljs-number">40</span>, 
   67           <span class="hljs-string">"value"</span> : <span class="hljs-literal">null</span>, 
   68           <span class="hljs-string">"vType"</span> : <span class="hljs-string">"null"</span>, 
   69           <span class="hljs-string">"vTypeID"</span> : <span class="hljs-number">0</span> 
   70         }, 
   71         <span class="hljs-string">"outVariable"</span> : { 
   72           <span class="hljs-string">"id"</span> : <span class="hljs-number">4</span>, 
   73           <span class="hljs-string">"name"</span> : <span class="hljs-string">"3"</span> 
   74         }, 
   75         <span class="hljs-string">"canThrow"</span> : <span class="hljs-literal">false</span>, 
   76         <span class="hljs-string">"expressionType"</span> : <span class="hljs-string">"json"</span> 
   77       }, 
   78       { 
   79         <span class="hljs-string">"type"</span> : <span class="hljs-string">"EnumerateListNode"</span>, 
   80         <span class="hljs-string">"dependencies"</span> : [ 
   81           <span class="hljs-number">4</span> 
   82         ], 
   83         <span class="hljs-string">"id"</span> : <span class="hljs-number">3</span>, 
   84         <span class="hljs-string">"estimatedCost"</span> : <span class="hljs-number">13</span>, 
   85         <span class="hljs-string">"estimatedNrItems"</span> : <span class="hljs-number">10</span>, 
   86         <span class="hljs-string">"inVariable"</span> : { 
   87           <span class="hljs-string">"id"</span> : <span class="hljs-number">2</span>, 
   88           <span class="hljs-string">"name"</span> : <span class="hljs-string">"1"</span> 
   89         }, 
   90         <span class="hljs-string">"outVariable"</span> : { 
   91           <span class="hljs-string">"id"</span> : <span class="hljs-number">0</span>, 
   92           <span class="hljs-string">"name"</span> : <span class="hljs-string">"i"</span> 
   93         } 
   94       }, 
   95       { 
   96         <span class="hljs-string">"type"</span> : <span class="hljs-string">"ReturnNode"</span>, 
   97         <span class="hljs-string">"dependencies"</span> : [ 
   98           <span class="hljs-number">3</span> 
   99         ], 
  100         <span class="hljs-string">"id"</span> : <span class="hljs-number">5</span>, 
  101         <span class="hljs-string">"estimatedCost"</span> : <span class="hljs-number">23</span>, 
  102         <span class="hljs-string">"estimatedNrItems"</span> : <span class="hljs-number">10</span>, 
  103         <span class="hljs-string">"inVariable"</span> : { 
  104           <span class="hljs-string">"id"</span> : <span class="hljs-number">4</span>, 
  105           <span class="hljs-string">"name"</span> : <span class="hljs-string">"3"</span> 
  106         }, 
  107         <span class="hljs-string">"count"</span> : <span class="hljs-literal">true</span> 
  108       } 
  109     ], 
  110     <span class="hljs-string">"rules"</span> : [ 
  111       <span class="hljs-string">"move-calculations-up"</span>, 
  112       <span class="hljs-string">"move-calculations-up-2"</span> 
  113     ], 
  114     <span class="hljs-string">"collections"</span> : [ ], 
  115     <span class="hljs-string">"variables"</span> : [ 
  116       { 
  117         <span class="hljs-string">"id"</span> : <span class="hljs-number">4</span>, 
  118         <span class="hljs-string">"name"</span> : <span class="hljs-string">"3"</span> 
  119       }, 
  120       { 
  121         <span class="hljs-string">"id"</span> : <span class="hljs-number">2</span>, 
  122         <span class="hljs-string">"name"</span> : <span class="hljs-string">"1"</span> 
  123       }, 
  124       { 
  125         <span class="hljs-string">"id"</span> : <span class="hljs-number">0</span>, 
  126         <span class="hljs-string">"name"</span> : <span class="hljs-string">"i"</span> 
  127       } 
  128     ], 
  129     <span class="hljs-string">"estimatedCost"</span> : <span class="hljs-number">23</span>, 
  130     <span class="hljs-string">"estimatedNrItems"</span> : <span class="hljs-number">10</span>, 
  131     <span class="hljs-string">"initialize"</span> : <span class="hljs-literal">true</span>, 
  132     <span class="hljs-string">"isModificationQuery"</span> : <span class="hljs-literal">false</span> 
  133   }, 
  134   <span class="hljs-string">"cacheable"</span> : <span class="hljs-literal">false</span>, 
  135   <span class="hljs-string">"warnings"</span> : [ 
  136     { 
  137       <span class="hljs-string">"code"</span> : <span class="hljs-number">1562</span>, 
  138       <span class="hljs-string">"message"</span> : <span class="hljs-string">"division by zero"</span> 
  139     } 
  140   ], 
  141   <span class="hljs-string">"stats"</span> : { 
  142     <span class="hljs-string">"rulesExecuted"</span> : <span class="hljs-number">34</span>, 
  143     <span class="hljs-string">"rulesSkipped"</span> : <span class="hljs-number">0</span>, 
  144     <span class="hljs-string">"plansCreated"</span> : <span class="hljs-number">1</span> 
  145   }, 
  146   <span class="hljs-string">"error"</span> : <span class="hljs-literal">false</span>, 
  147   <span class="hljs-string">"code"</span> : <span class="hljs-number">200</span> 
  148 }