Advertisement
omelyanov

Untitled

Nov 3rd, 2021
641
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.36 KB | None | 0 0
  1. {
  2.   "mul": {
  3.     "category": "FUNCTION",
  4.     "operation": "MUL",
  5.     "type": "INTEGER",
  6.     "rank": "VALUE",
  7.     "operands": [
  8.       {
  9.         "category": "FUNCTION",
  10.         "operation": "SUM",
  11.         "type": "INTEGER",
  12.         "rank": "VALUE",
  13.         "operands": [
  14.           {
  15.             "category": "FUNCTION",
  16.             "operation": "FETCH_ONE",
  17.             "type": "INTEGER",
  18.             "rank": "VALUE",
  19.             "operands": [
  20.               {
  21.                 "category": "ID",
  22.                 "type": "DATASET",
  23.                 "id": {
  24.                   "type": "CATALOGUE",
  25.                   "service": "test-application",
  26.                   "register": "handbook",
  27.                   "catalogue": "111e4567-e89b-12d3-a456-426655440000"
  28.                 }
  29.               },
  30.               {
  31.                 "category": "ENTITY_ATTRIBUTE",
  32.                 "type": "INTEGER",
  33.                 "rank": "TUPLE",
  34.                 "path": "shieldTypes",
  35.                 "field": {
  36.                   "schema": "public",
  37.                   "table": "handbook_entry_version",
  38.                   "field": "data"
  39.                 }
  40.               },
  41.               {
  42.                 "category": "PREDICATE",
  43.                 "operation": "EQ",
  44.                 "operands": [
  45.                   {
  46.                     "category": "ENTITY_ATTRIBUTE",
  47.                     "type": "STRING",
  48.                     "rank": "VALUE",
  49.                     "path": "type",
  50.                     "field": {
  51.                       "schema": "public",
  52.                       "table": "handbook_entry_version",
  53.                       "field": "data"
  54.                     }
  55.                   },
  56.                   {
  57.                     "category": "LITERAL",
  58.                     "type": "STRING",
  59.                     "value": "CAPITAL_SHIP"
  60.                   }
  61.                 ]
  62.               }
  63.             ]
  64.           }
  65.         ]
  66.       },
  67.       {
  68.         "category": "SCOPE_ATTRIBUTE",
  69.         "type": "INTEGER",
  70.         "rank": "VALUE",
  71.         "position": null,
  72.         "path": "b"
  73.       }
  74.     ]
  75.   },
  76.   "avg": {
  77.     "category": "FUNCTION",
  78.     "operation": "AVG",
  79.     "type": "NUMBER",
  80.     "rank": "VALUE",
  81.     "operands": [
  82.       {
  83.         "category": "FUNCTION",
  84.         "operation": "FETCH_ONE",
  85.         "type": "INTEGER",
  86.         "rank": "VALUE",
  87.         "operands": [
  88.           {
  89.             "category": "ID",
  90.             "type": "DATASET",
  91.             "id": {
  92.               "type": "CATALOGUE",
  93.               "service": "test-application",
  94.               "register": "handbook",
  95.               "catalogue": "111e4567-e89b-12d3-a456-426655440000"
  96.             }
  97.           },
  98.           {
  99.             "category": "ENTITY_ATTRIBUTE",
  100.             "type": "INTEGER",
  101.             "rank": "TUPLE",
  102.             "path": "shieldTypes",
  103.             "field": {
  104.               "schema": "public",
  105.               "table": "handbook_entry_version",
  106.               "field": "data"
  107.             }
  108.           },
  109.           {
  110.             "category": "PREDICATE",
  111.             "operation": "EQ",
  112.             "operands": [
  113.               {
  114.                 "category": "ENTITY_ATTRIBUTE",
  115.                 "type": "STRING",
  116.                 "rank": "VALUE",
  117.                 "path": "type",
  118.                 "field": {
  119.                   "schema": "public",
  120.                   "table": "handbook_entry_version",
  121.                   "field": "data"
  122.                 }
  123.               },
  124.               {
  125.                 "category": "LITERAL",
  126.                 "type": "STRING",
  127.                 "value": "CAPITAL_SHIP"
  128.               }
  129.             ]
  130.           }
  131.         ]
  132.       }
  133.     ]
  134.   },
  135.   "c.e.g": {
  136.     "category": "PREDICATE",
  137.     "operation": "GT",
  138.     "operands": [
  139.       {
  140.         "category": "SCOPE_ATTRIBUTE",
  141.         "type": "INTEGER",
  142.         "rank": "VALUE",
  143.         "position": "c",
  144.         "path": "d.count"
  145.       },
  146.       {
  147.         "category": "LITERAL",
  148.         "type": "INTEGER",
  149.         "value": "200"
  150.       }
  151.     ]
  152.   },
  153.   "c.d.events.nextDay": {
  154.     "category": "FUNCTION",
  155.     "operation": "ADD",
  156.     "type": "DATE_TIME",
  157.     "rank": "VALUE",
  158.     "operands": [
  159.       {
  160.         "category": "SCOPE_ATTRIBUTE",
  161.         "type": "DATE_TIME",
  162.         "rank": "VALUE",
  163.         "position": "c.d.events",
  164.         "path": "date"
  165.       },
  166.       {
  167.         "category": "LITERAL",
  168.         "type": "INTEGER",
  169.         "value": "1"
  170.       }
  171.     ]
  172.   },
  173.   "c.concat": {
  174.     "category": "FUNCTION",
  175.     "operation": "CONCAT",
  176.     "type": "STRING",
  177.     "rank": "VALUE",
  178.     "operands": [
  179.       {
  180.         "category": "SCOPE_ATTRIBUTE",
  181.         "type": "STRING",
  182.         "rank": "VALUE",
  183.         "path": "a"
  184.       },
  185.       {
  186.         "category": "SCOPE_ATTRIBUTE",
  187.         "type": "STRING",
  188.         "rank": "VALUE",
  189.         "position": "c",
  190.         "path": "d.name"
  191.       }
  192.     ]
  193.   },
  194.   "c.e.h": {
  195.     "category": "PREDICATE",
  196.     "operation": "EQ",
  197.     "operands": [
  198.       {
  199.         "category": "SCOPE_ATTRIBUTE",
  200.         "type": "INTEGER",
  201.         "rank": "VALUE",
  202.         "position": "c",
  203.         "path": "d.absent"
  204.       },
  205.       {
  206.         "category": "LITERAL",
  207.         "type": "INTEGER",
  208.         "value": "404"
  209.       }
  210.     ]
  211.   },
  212.   "u": {
  213.     "category": "LITERAL",
  214.     "type": "UUID",
  215.     "value": "bb743523-f390-4a08-834e-9d1c592ccec3"
  216.   }
  217. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement