diff --git a/tests/calcite/testSumAndDistinctSumWithExpandSumType.json b/tests/calcite/testSumAndDistinctSumWithExpandSumType.json index 5ba1536..06e7bea 100644 --- a/tests/calcite/testSumAndDistinctSumWithExpandSumType.json +++ b/tests/calcite/testSumAndDistinctSumWithExpandSumType.json @@ -49,7 +49,7 @@ "keys" : [ ], "function" : [ { "distinct" : false, - "type" : "DECIMAL", + "type" : "BIGINT", "operand" : [ { "column" : 1, "type" : "BIGINT" @@ -101,7 +101,7 @@ "type" : "BIGINT", "operand" : [ { "column" : 0, - "type" : "DECIMAL" + "type" : "BIGINT" } ], "operator" : "CAST" }, { diff --git a/tests/cockroach/memo/164.json b/tests/cockroach/memo/164.json deleted file mode 100644 index 18a0119..0000000 --- a/tests/cockroach/memo/164.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "help": [ - "project\n ├── columns: s:3(string) x:1(int!null)\n ├── key: (1)\n ├── fd: (1)--\u003e(3)\n ├── prune: (1,3)\n └── scan a\n ├── columns: x:1(int!null) y:2(int) s:3(string) d:4(decimal!null) crdb_internal_mvcc_timestamp:5(decimal) tableoid:6(oid)\n ├── key: (1)\n ├── fd: (1)--\u003e(2-6), (3,4)~~\u003e(1,2,5,6)\n └── prune: (1-6)\n", - "scan a@a_s_d_key\n ├── columns: s:3(string) x:1(int!null)\n ├── key: (1)\n ├── fd: (1)--\u003e(3)\n └── prune: (1,3)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "STRING", - "DECIMAL", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/memo/170.json b/tests/cockroach/memo/170.json deleted file mode 100644 index bd8e0c8..0000000 --- a/tests/cockroach/memo/170.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "help": [ - "project\n ├── columns: d:4(decimal!null)\n ├── prune: (4)\n └── scan a\n ├── columns: x:1(int!null) y:2(int) s:3(string) d:4(decimal!null) crdb_internal_mvcc_timestamp:5(decimal) tableoid:6(oid)\n ├── key: (1)\n ├── fd: (1)--\u003e(2-6), (3,4)~~\u003e(1,2,5,6)\n └── prune: (1-6)\n", - "scan a@a_s_d_key\n ├── columns: d:4(decimal!null)\n └── prune: (4)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 3, - "type": "DECIMAL" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 3, - "type": "DECIMAL" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "STRING", - "DECIMAL", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/memo/186.json b/tests/cockroach/memo/186.json deleted file mode 100644 index 1ce308f..0000000 --- a/tests/cockroach/memo/186.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "help": [ - "except\n ├── columns: column1:1(int!null)\n ├── left columns: column1:1(int!null)\n ├── right columns: column1:2(int)\n ├── cardinality: [0 - 2]\n ├── key: (1)\n ├── values\n │ ├── columns: column1:1(int!null)\n │ ├── cardinality: [2 - 2]\n │ ├── tuple [type=tuple{int}]\n │ │ └── const: 1 [type=int]\n │ └── tuple [type=tuple{int}]\n │ └── const: 1 [type=int]\n └── values\n ├── columns: column1:2(int!null)\n ├── cardinality: [1 - 1]\n ├── key: ()\n ├── fd: ()--\u003e(2)\n └── tuple [type=tuple{int}]\n └── const: 1 [type=int]\n", - "except\n ├── columns: column1:1(int!null)\n ├── left columns: column1:1(int!null)\n ├── right columns: column1:2(int)\n ├── cardinality: [0 - 2]\n ├── key: (1)\n ├── values\n │ ├── columns: column1:1(int!null)\n │ ├── cardinality: [2 - 2]\n │ ├── tuple [type=tuple{int}]\n │ │ └── const: 1 [type=int]\n │ └── tuple [type=tuple{int}]\n │ └── const: 1 [type=int]\n └── values\n ├── columns: column1:2(int!null)\n ├── cardinality: [1 - 1]\n ├── key: ()\n ├── fd: ()--\u003e(2)\n └── tuple [type=tuple{int}]\n └── const: 1 [type=int]\n" - ], - "queries": [ - { - "except": [ - { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ] - ], - "schema": [ - "INT" - ] - } - }, - { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ] - ], - "schema": [ - "INT" - ] - } - } - ] - }, - { - "except": [ - { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ] - ], - "schema": [ - "INT" - ] - } - }, - { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ] - ], - "schema": [ - "INT" - ] - } - } - ] - } - ], - "schemas": [] -} \ No newline at end of file diff --git a/tests/cockroach/memo/401.json b/tests/cockroach/memo/401.json deleted file mode 100644 index cbb4173..0000000 --- a/tests/cockroach/memo/401.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "help": [ - "project\n ├── columns: y:2(int) s:3(string) b:5(bool)\n ├── stats: [rows=3000]\n └── scan a\n ├── columns: x:1(int!null) y:2(int) s:3(string) d:4(decimal!null) b:5(bool) crdb_internal_mvcc_timestamp:6(decimal) tableoid:7(oid)\n ├── stats: [rows=3000]\n ├── key: (1)\n └── fd: (1)--\u003e(2-7), (3,4)~~\u003e(1,2,5-7)\n", - "scan a\n ├── columns: y:2(int) s:3(string) b:5(bool)\n └── stats: [rows=3000]\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - }, - { - "column": 4, - "type": "BOOL" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - }, - { - "column": 4, - "type": "BOOL" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - false, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "STRING", - "DECIMAL", - "BOOL", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/memo/402.json b/tests/cockroach/memo/402.json deleted file mode 100644 index 3df6415..0000000 --- a/tests/cockroach/memo/402.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "help": [ - "project\n ├── columns: x:1(int!null) y:2(int) s:3(string)\n ├── stats: [rows=3000]\n ├── key: (1)\n ├── fd: (1)--\u003e(2,3)\n └── scan a\n ├── columns: x:1(int!null) y:2(int) s:3(string) d:4(decimal!null) b:5(bool) crdb_internal_mvcc_timestamp:6(decimal) tableoid:7(oid)\n ├── stats: [rows=3000]\n ├── key: (1)\n └── fd: (1)--\u003e(2-7), (3,4)~~\u003e(1,2,5-7)\n", - "scan a\n ├── columns: x:1(int!null) y:2(int) s:3(string)\n ├── stats: [rows=3000]\n ├── key: (1)\n └── fd: (1)--\u003e(2,3)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - false, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "STRING", - "DECIMAL", - "BOOL", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/memo/411.json b/tests/cockroach/memo/411.json deleted file mode 100644 index 2957dff..0000000 --- a/tests/cockroach/memo/411.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "help": [ - "project\n ├── columns: x:1(int)\n ├── stats: [rows=1]\n └── scan empty\n ├── columns: x:1(int) rowid:2(int!null) crdb_internal_mvcc_timestamp:3(decimal) tableoid:4(oid)\n ├── stats: [rows=1]\n ├── key: (2)\n └── fd: (2)--\u003e(1,3,4)\n", - "scan empty\n ├── columns: x:1(int)\n └── stats: [rows=1]\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 1 - ] - ], - "nullable": [ - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/memo/550.json b/tests/cockroach/memo/550.json deleted file mode 100644 index a912020..0000000 --- a/tests/cockroach/memo/550.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "help": [ - "values\n ├── columns: column1:1(int!null)\n ├── cardinality: [4 - 4]\n ├── stats: [rows=4]\n ├── (1,) [type=tuple{int}]\n ├── (1,) [type=tuple{int}]\n ├── (1,) [type=tuple{int}]\n └── (2,) [type=tuple{int}]\n", - "values\n ├── columns: column1:1(int!null)\n ├── cardinality: [4 - 4]\n ├── stats: [rows=4]\n ├── (1,) [type=tuple{int}]\n ├── (1,) [type=tuple{int}]\n ├── (1,) [type=tuple{int}]\n └── (2,) [type=tuple{int}]\n" - ], - "queries": [ - { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "2", - "type": "INT" - } - ] - ], - "schema": [ - "INT" - ] - } - }, - { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "2", - "type": "INT" - } - ] - ], - "schema": [ - "INT" - ] - } - } - ], - "schemas": [] -} \ No newline at end of file diff --git a/tests/cockroach/memo/551.json b/tests/cockroach/memo/551.json deleted file mode 100644 index cf5dc97..0000000 --- a/tests/cockroach/memo/551.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "help": [ - "select\n ├── columns: x:1(int!null)\n ├── cardinality: [0 - 4]\n ├── stats: [rows=2, distinct(1)=1, null(1)=0]\n ├── fd: ()--\u003e(1)\n ├── values\n │ ├── columns: column1:1(int!null)\n │ ├── cardinality: [4 - 4]\n │ ├── stats: [rows=4, distinct(1)=2, null(1)=0]\n │ ├── (1,) [type=tuple{int}]\n │ ├── (1,) [type=tuple{int}]\n │ ├── (1,) [type=tuple{int}]\n │ └── (2,) [type=tuple{int}]\n └── filters\n └── column1:1 = 1 [type=bool, outer=(1), constraints=(/1: [/1 - /1]; tight), fd=()--\u003e(1)]\n", - "select\n ├── columns: x:1(int!null)\n ├── cardinality: [0 - 4]\n ├── stats: [rows=2, distinct(1)=1, null(1)=0]\n ├── fd: ()--\u003e(1)\n ├── values\n │ ├── columns: column1:1(int!null)\n │ ├── cardinality: [4 - 4]\n │ ├── stats: [rows=4, distinct(1)=2, null(1)=0]\n │ ├── (1,) [type=tuple{int}]\n │ ├── (1,) [type=tuple{int}]\n │ ├── (1,) [type=tuple{int}]\n │ └── (2,) [type=tuple{int}]\n └── filters\n └── column1:1 = 1 [type=bool, outer=(1), constraints=(/1: [/1 - /1]; tight), fd=()--\u003e(1)]\n" - ], - "queries": [ - { - "filter": { - "condition": { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - "operator": "EQ", - "type": "BOOL" - } - ], - "operator": "AND", - "type": "BOOLEAN" - }, - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "2", - "type": "INT" - } - ] - ], - "schema": [ - "INT" - ] - } - } - } - }, - { - "filter": { - "condition": { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - "operator": "EQ", - "type": "BOOL" - } - ], - "operator": "AND", - "type": "BOOLEAN" - }, - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "2", - "type": "INT" - } - ] - ], - "schema": [ - "INT" - ] - } - } - } - } - ], - "schemas": [] -} \ No newline at end of file diff --git a/tests/cockroach/norm/1013.json b/tests/cockroach/norm/1013.json deleted file mode 100644 index 9d97c6f..0000000 --- a/tests/cockroach/norm/1013.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "help": [ - "project\n ├── columns: k:1!null\n ├── key: (1)\n └── scan a\n ├── columns: k:1!null i:2 f:3 s:4 crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── key: (1)\n └── fd: (1)--\u003e(2-6)\n", - "scan a\n ├── columns: k:1!null\n └── key: (1)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "STRING", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/1270.json b/tests/cockroach/norm/1270.json deleted file mode 100644 index 9a000f7..0000000 --- a/tests/cockroach/norm/1270.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "help": [ - "project\n ├── columns: k:1!null i:2 t:3 tz:4 d:5\n ├── key: (1)\n ├── fd: (1)--\u003e(2-5)\n └── select\n ├── columns: k:1!null i:2 t:3 tz:4 d:5 crdb_internal_mvcc_timestamp:6 tableoid:7\n ├── key: (1)\n ├── fd: (1)--\u003e(2-7)\n ├── scan e\n │ ├── columns: k:1!null i:2 t:3 tz:4 d:5 crdb_internal_mvcc_timestamp:6 tableoid:7\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2-7)\n └── filters\n └── k:1 \u003e NaN [outer=(1), constraints=(/1: (/NULL - ])]\n", - "select\n ├── columns: k:1!null i:2 t:3 tz:4 d:5\n ├── key: (1)\n ├── fd: (1)--\u003e(2-5)\n ├── scan e\n │ ├── columns: k:1!null i:2 t:3 tz:4 d:5\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2-5)\n └── filters\n └── k:1 \u003e NaN [outer=(1), constraints=(/1: (/NULL - ])]\n" - ], - "queries": [ - { - "project": { - "source": { - "filter": { - "condition": { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "operand": [], - "operator": "NaN", - "type": "FLOAT" - } - ], - "operator": "GT", - "type": "BOOL" - } - ], - "operator": "AND", - "type": "BOOLEAN" - }, - "source": { - "scan": 0 - } - } - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "TIMESTAMP" - }, - { - "column": 3, - "type": "TIMESTAMPTZ" - }, - { - "column": 4, - "type": "DATE" - } - ] - } - }, - { - "filter": { - "condition": { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "operand": [], - "operator": "NaN", - "type": "FLOAT" - } - ], - "operator": "GT", - "type": "BOOL" - } - ], - "operator": "AND", - "type": "BOOLEAN" - }, - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "TIMESTAMP" - }, - { - "column": 3, - "type": "TIMESTAMPTZ" - }, - { - "column": 4, - "type": "DATE" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "TIMESTAMP", - "TIMESTAMPTZ", - "DATE", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/1352.json b/tests/cockroach/norm/1352.json deleted file mode 100644 index 7fd497f..0000000 --- a/tests/cockroach/norm/1352.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "help": [ - "project\n ├── columns: k:1!null i:2 f:3 s:4 j:5\n ├── key: (1)\n ├── fd: (1)--\u003e(2-5)\n └── scan a\n ├── columns: k:1!null i:2 f:3 s:4 j:5 crdb_internal_mvcc_timestamp:6 tableoid:7\n ├── partial index predicates\n │ └── partial_idx: filters\n │ └── true\n ├── key: (1)\n └── fd: (1)--\u003e(2-7)\n", - "scan a\n ├── columns: k:1!null i:2 f:3 s:4 j:5\n ├── partial index predicates\n │ └── partial_idx: filters (true)\n ├── key: (1)\n └── fd: (1)--\u003e(2-5)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "FLOAT" - }, - { - "column": 3, - "type": "STRING" - }, - { - "column": 4, - "type": "JSONB" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "FLOAT" - }, - { - "column": 3, - "type": "STRING" - }, - { - "column": 4, - "type": "JSONB" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "STRING", - "JSONB", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/1393.json b/tests/cockroach/norm/1393.json deleted file mode 100644 index 5c71549..0000000 --- a/tests/cockroach/norm/1393.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "help": [ - "project\n ├── columns: k:1!null i:2 f:3 s:4!null j:5\n ├── key: (1)\n ├── fd: (1)--\u003e(2-5)\n └── scan b\n ├── columns: k:1!null i:2 f:3 s:4!null j:5 crdb_internal_mvcc_timestamp:6 tableoid:7\n ├── partial index predicates\n │ └── partial_idx: filters\n │ └── s:4 IS NOT NULL [outer=(4), constraints=(/4: (/NULL - ]; tight)]\n ├── key: (1)\n └── fd: (1)--\u003e(2-7)\n", - "scan b\n ├── columns: k:1!null i:2 f:3 s:4!null j:5\n ├── partial index predicates\n │ └── partial_idx: filters (true)\n ├── key: (1)\n └── fd: (1)--\u003e(2-5)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "FLOAT" - }, - { - "column": 3, - "type": "STRING" - }, - { - "column": 4, - "type": "JSONB" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "FLOAT" - }, - { - "column": 3, - "type": "STRING" - }, - { - "column": 4, - "type": "JSONB" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - false, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "STRING", - "JSONB", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/1399.json b/tests/cockroach/norm/1399.json deleted file mode 100644 index b296a86..0000000 --- a/tests/cockroach/norm/1399.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "help": [ - "project\n ├── columns: k:1!null i:2 f:3 s:4!null j:5\n ├── key: (1)\n ├── fd: (1)--\u003e(2-5)\n └── scan b\n ├── columns: k:1!null i:2 f:3 s:4!null j:5 crdb_internal_mvcc_timestamp:6 tableoid:7\n ├── partial index predicates\n │ └── partial_idx: filters\n │ └── s:4 IS NULL [outer=(4), constraints=(/4: [/NULL - /NULL]; tight), fd=()--\u003e(4)]\n ├── key: (1)\n └── fd: (1)--\u003e(2-7)\n", - "scan b\n ├── columns: k:1!null i:2 f:3 s:4!null j:5\n ├── partial index predicates\n │ └── partial_idx: filters\n │ └── false [constraints=(contradiction; tight)]\n ├── key: (1)\n └── fd: (1)--\u003e(2-5)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "FLOAT" - }, - { - "column": 3, - "type": "STRING" - }, - { - "column": 4, - "type": "JSONB" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "FLOAT" - }, - { - "column": 3, - "type": "STRING" - }, - { - "column": 4, - "type": "JSONB" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - false, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "STRING", - "JSONB", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/1426.json b/tests/cockroach/norm/1426.json deleted file mode 100644 index 37033e8..0000000 --- a/tests/cockroach/norm/1426.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "help": [ - "except\n ├── columns: i:2\n ├── left columns: i:2\n ├── right columns: k:8\n ├── key: (2)\n ├── project\n │ ├── columns: i:2\n │ └── scan b\n │ ├── columns: k:1!null i:2 f:3 s:4!null j:5 crdb_internal_mvcc_timestamp:6 tableoid:7\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2-7)\n └── project\n ├── columns: k:8!null\n ├── key: (8)\n └── scan b\n ├── columns: k:8!null i:9 f:10 s:11!null j:12 crdb_internal_mvcc_timestamp:13 tableoid:14\n ├── key: (8)\n └── fd: (8)--\u003e(9-14)\n", - "except\n ├── columns: i:2\n ├── left columns: i:2\n ├── right columns: k:8\n ├── key: (2)\n ├── scan b\n │ └── columns: i:2\n └── scan b\n ├── columns: k:8!null\n └── key: (8)\n" - ], - "queries": [ - { - "except": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - } - ] - } - } - ] - }, - { - "except": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - } - ] - } - } - ] - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - false, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "STRING", - "JSONB", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/1430.json b/tests/cockroach/norm/1430.json deleted file mode 100644 index 0b917aa..0000000 --- a/tests/cockroach/norm/1430.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "help": [ - "intersect\n ├── columns: i:2\n ├── left columns: i:2\n ├── right columns: i:9\n ├── key: (2)\n ├── project\n │ ├── columns: i:2\n │ └── scan b\n │ ├── columns: k:1!null i:2 f:3 s:4!null j:5 crdb_internal_mvcc_timestamp:6 tableoid:7\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2-7)\n └── project\n ├── columns: i:9\n └── scan b\n ├── columns: k:8!null i:9 f:10 s:11!null j:12 crdb_internal_mvcc_timestamp:13 tableoid:14\n ├── key: (8)\n └── fd: (8)--\u003e(9-14)\n", - "intersect\n ├── columns: i:2\n ├── left columns: i:2\n ├── right columns: i:9\n ├── key: (2)\n ├── scan b\n │ └── columns: i:2\n └── scan b\n └── columns: i:9\n" - ], - "queries": [ - { - "intersect": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - } - ] - }, - { - "intersect": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - } - ] - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - false, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "STRING", - "JSONB", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/1443.json b/tests/cockroach/norm/1443.json deleted file mode 100644 index 8bddb75..0000000 --- a/tests/cockroach/norm/1443.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "help": [ - "union\n ├── columns: column1:5!null column2:6!null\n ├── left columns: column1:1 column2:2\n ├── right columns: column1:3 column2:4\n ├── cardinality: [1 - 4]\n ├── key: (5,6)\n ├── values\n │ ├── columns: column1:1!null column2:2!null\n │ ├── cardinality: [2 - 2]\n │ ├── (1, 1)\n │ └── (2, 1)\n └── values\n ├── columns: column1:3!null column2:4!null\n ├── cardinality: [2 - 2]\n ├── (1, 1)\n └── (2, 1)\n", - "union\n ├── columns: column1:5!null column2:6!null\n ├── left columns: column1:1 column2:2\n ├── right columns: column1:3 column2:4\n ├── cardinality: [1 - 4]\n ├── key: (5,6)\n ├── values\n │ ├── columns: column1:1!null column2:2!null\n │ ├── cardinality: [2 - 2]\n │ ├── (1, 1)\n │ └── (2, 1)\n └── values\n ├── columns: column1:3!null column2:4!null\n ├── cardinality: [2 - 2]\n ├── (1, 1)\n └── (2, 1)\n" - ], - "queries": [ - { - "distinct": { - "union": [ - { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - }, - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "2", - "type": "INT" - }, - { - "operand": [], - "operator": "1", - "type": "INT" - } - ] - ], - "schema": [ - "INT", - "INT" - ] - } - }, - { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - }, - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "2", - "type": "INT" - }, - { - "operand": [], - "operator": "1", - "type": "INT" - } - ] - ], - "schema": [ - "INT", - "INT" - ] - } - } - ] - } - }, - { - "distinct": { - "union": [ - { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - }, - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "2", - "type": "INT" - }, - { - "operand": [], - "operator": "1", - "type": "INT" - } - ] - ], - "schema": [ - "INT", - "INT" - ] - } - }, - { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - }, - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "2", - "type": "INT" - }, - { - "operand": [], - "operator": "1", - "type": "INT" - } - ] - ], - "schema": [ - "INT", - "INT" - ] - } - } - ] - } - } - ], - "schemas": [] -} \ No newline at end of file diff --git a/tests/cockroach/norm/1570.json b/tests/cockroach/norm/1570.json deleted file mode 100644 index e964dbf..0000000 --- a/tests/cockroach/norm/1570.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "help": [ - "project\n ├── columns: k:1!null v:2\n ├── key: (1)\n ├── fd: (1)--\u003e(2)\n └── scan c\n ├── columns: k:1!null v:2 crdb_internal_mvcc_timestamp:3 tableoid:4\n ├── partial index predicates\n │ └── partial_v: filters\n │ └── (k:1 \u003e 0) AND (k:1 \u003c 0) [outer=(1), constraints=(contradiction; tight)]\n ├── key: (1)\n └── fd: (1)--\u003e(2-4)\n", - "scan c\n ├── columns: k:1!null v:2\n ├── partial index predicates\n │ └── partial_v: filters\n │ └── false [constraints=(contradiction; tight)]\n ├── key: (1)\n └── fd: (1)--\u003e(2)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/452.json b/tests/cockroach/norm/452.json deleted file mode 100644 index 60c6ae7..0000000 --- a/tests/cockroach/norm/452.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "help": [ - "group-by (hash)\n ├── columns: s:4!null f:3 sum:8\n ├── grouping columns: f:3 s:4!null\n ├── key: (3,4)\n ├── fd: (3,4)--\u003e(8)\n ├── project\n │ ├── columns: f:3 s:4!null\n │ └── scan a\n │ ├── columns: k:1!null i:2!null f:3 s:4!null j:5 crdb_internal_mvcc_timestamp:6 tableoid:7\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2-7), (2,4)--\u003e(1,3,5-7), (2,3)~~\u003e(1,4-7)\n └── aggregations\n └── sum [as=sum:8, outer=(3)]\n └── f:3\n", - "group-by (hash)\n ├── columns: s:4!null f:3 sum:8\n ├── grouping columns: f:3 s:4!null\n ├── key: (3,4)\n ├── fd: (3,4)--\u003e(8)\n ├── scan a\n │ └── columns: f:3 s:4!null\n └── aggregations\n └── sum [as=sum:8, outer=(3)]\n └── f:3\n" - ], - "queries": [ - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 0, - "type": "FLOAT" - } - ], - "operator": "SUM", - "type": "FLOAT" - } - ], - "keys": [ - { - "column": 0, - "type": "FLOAT" - }, - { - "column": 1, - "type": "STRING" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 2, - "type": "FLOAT" - }, - { - "column": 3, - "type": "STRING" - } - ] - } - } - } - }, - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 0, - "type": "FLOAT" - } - ], - "operator": "SUM", - "type": "FLOAT" - } - ], - "keys": [ - { - "column": 0, - "type": "FLOAT" - }, - { - "column": 1, - "type": "STRING" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 2, - "type": "FLOAT" - }, - { - "column": 3, - "type": "STRING" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - false, - true, - false, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "STRING", - "JSONB", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/588.json b/tests/cockroach/norm/588.json deleted file mode 100644 index d9d15ce..0000000 --- a/tests/cockroach/norm/588.json +++ /dev/null @@ -1,173 +0,0 @@ -{ - "help": [ - "project\n ├── columns: sum:6!null\n └── group-by (hash)\n ├── columns: y:2 sum:6!null\n ├── grouping columns: y:2\n ├── key: (2)\n ├── fd: (2)--\u003e(6)\n ├── project\n │ ├── columns: y:2 sum:5!null\n │ └── group-by (hash)\n │ ├── columns: x:1!null y:2 sum:5!null\n │ ├── grouping columns: x:1!null y:2\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2,5)\n │ ├── project\n │ │ ├── columns: x:1!null y:2\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2)\n │ │ └── scan xy\n │ │ ├── columns: x:1!null y:2 crdb_internal_mvcc_timestamp:3 tableoid:4\n │ │ ├── key: (1)\n │ │ └── fd: (1)--\u003e(2-4)\n │ └── aggregations\n │ └── sum [as=sum:5, outer=(1)]\n │ └── x:1\n └── aggregations\n └── sum [as=sum:6, outer=(5)]\n └── sum:5\n", - "project\n ├── columns: sum:6!null\n └── group-by (hash)\n ├── columns: y:2 sum:6!null\n ├── grouping columns: y:2\n ├── key: (2)\n ├── fd: (2)--\u003e(6)\n ├── scan xy\n │ ├── columns: x:1!null y:2\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2)\n └── aggregations\n └── sum [as=sum:6, outer=(1)]\n └── x:1\n" - ], - "queries": [ - { - "project": { - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 1, - "type": "DECIMAL" - } - ], - "operator": "SUM", - "type": "DECIMAL" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 0, - "type": "INT" - } - ], - "operator": "SUM", - "type": "DECIMAL" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - } - }, - "target": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "DECIMAL" - } - ] - } - } - } - }, - "target": [ - { - "column": 1, - "type": "DECIMAL" - } - ] - } - }, - { - "project": { - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 0, - "type": "INT" - } - ], - "operator": "SUM", - "type": "DECIMAL" - } - ], - "keys": [ - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - } - }, - "target": [ - { - "column": 1, - "type": "DECIMAL" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/589.json b/tests/cockroach/norm/589.json deleted file mode 100644 index 0aab16e..0000000 --- a/tests/cockroach/norm/589.json +++ /dev/null @@ -1,181 +0,0 @@ -{ - "help": [ - "project\n ├── columns: sum:7!null\n └── group-by (hash)\n ├── columns: a:1!null sum:7!null\n ├── grouping columns: a:1!null\n ├── key: (1)\n ├── fd: (1)--\u003e(7)\n ├── project\n │ ├── columns: a:1!null sum:6!null\n │ └── group-by (hash)\n │ ├── columns: a:1!null b:2!null sum:6!null\n │ ├── grouping columns: a:1!null b:2!null\n │ ├── key: (1,2)\n │ ├── fd: (1,2)--\u003e(6)\n │ ├── project\n │ │ ├── columns: a:1!null b:2!null c:3!null\n │ │ ├── key: (1-3)\n │ │ └── scan abc\n │ │ ├── columns: a:1!null b:2!null c:3!null crdb_internal_mvcc_timestamp:4 tableoid:5\n │ │ ├── key: (1-3)\n │ │ └── fd: (1-3)--\u003e(4,5)\n │ └── aggregations\n │ └── sum [as=sum:6, outer=(3)]\n │ └── c:3\n └── aggregations\n └── sum [as=sum:7, outer=(6)]\n └── sum:6\n", - "project\n ├── columns: sum:7!null\n └── group-by (hash)\n ├── columns: a:1!null sum:7!null\n ├── grouping columns: a:1!null\n ├── key: (1)\n ├── fd: (1)--\u003e(7)\n ├── scan abc\n │ └── columns: a:1!null c:3!null\n └── aggregations\n └── sum [as=sum:7, outer=(3)]\n └── c:3\n" - ], - "queries": [ - { - "project": { - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 1, - "type": "DECIMAL" - } - ], - "operator": "SUM", - "type": "DECIMAL" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 2, - "type": "INT" - } - ], - "operator": "SUM", - "type": "DECIMAL" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 2, - "type": "DECIMAL" - } - ] - } - } - } - }, - "target": [ - { - "column": 1, - "type": "DECIMAL" - } - ] - } - }, - { - "project": { - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 1, - "type": "INT" - } - ], - "operator": "SUM", - "type": "DECIMAL" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - }, - "target": [ - { - "column": 1, - "type": "DECIMAL" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0, - 1, - 2 - ] - ], - "nullable": [ - false, - false, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/609.json b/tests/cockroach/norm/609.json deleted file mode 100644 index 99ab946..0000000 --- a/tests/cockroach/norm/609.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "help": [ - "project\n ├── columns: \"?column?\":3!null\n ├── cardinality: [2 - 2]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null column2:2!null\n │ ├── cardinality: [2 - 2]\n │ ├── (1, 2)\n │ └── (3, 4)\n └── projections\n └── column1:1 + column2:2 [as=\"?column?\":3, outer=(1,2), immutable]\n", - "project\n ├── columns: \"?column?\":3!null\n ├── cardinality: [2 - 2]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null column2:2!null\n │ ├── cardinality: [2 - 2]\n │ ├── (1, 2)\n │ └── (3, 4)\n └── projections\n └── column1:1 + column2:2 [as=\"?column?\":3, outer=(1,2), immutable]\n" - ], - "queries": [ - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - }, - { - "operand": [], - "operator": "2", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "3", - "type": "INT" - }, - { - "operand": [], - "operator": "4", - "type": "INT" - } - ] - ], - "schema": [ - "INT", - "INT" - ] - } - }, - "target": [ - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "operator": "PLUS", - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - }, - { - "operand": [], - "operator": "2", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "3", - "type": "INT" - }, - { - "operand": [], - "operator": "4", - "type": "INT" - } - ] - ], - "schema": [ - "INT", - "INT" - ] - } - }, - "target": [ - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "operator": "PLUS", - "type": "INT" - } - ] - } - } - ], - "schemas": [] -} \ No newline at end of file diff --git a/tests/cockroach/norm/613.json b/tests/cockroach/norm/613.json deleted file mode 100644 index 5b5683d..0000000 --- a/tests/cockroach/norm/613.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "help": [ - "select\n ├── columns: one:1!null two:2!null\n ├── cardinality: [0 - 2]\n ├── fd: (1)==(2), (2)==(1)\n ├── values\n │ ├── columns: column1:1!null column2:2!null\n │ ├── cardinality: [2 - 2]\n │ ├── (1, 2)\n │ └── (3, 4)\n └── filters\n └── column1:1 = column2:2 [outer=(1,2), constraints=(/1: (/NULL - ]; /2: (/NULL - ]), fd=(1)==(2), (2)==(1)]\n", - "select\n ├── columns: one:1!null two:2!null\n ├── cardinality: [0 - 2]\n ├── fd: (1)==(2), (2)==(1)\n ├── values\n │ ├── columns: column1:1!null column2:2!null\n │ ├── cardinality: [2 - 2]\n │ ├── (1, 2)\n │ └── (3, 4)\n └── filters\n └── column1:1 = column2:2 [outer=(1,2), constraints=(/1: (/NULL - ]; /2: (/NULL - ]), fd=(1)==(2), (2)==(1)]\n" - ], - "queries": [ - { - "filter": { - "condition": { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "operator": "EQ", - "type": "BOOL" - } - ], - "operator": "AND", - "type": "BOOLEAN" - }, - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - }, - { - "operand": [], - "operator": "2", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "3", - "type": "INT" - }, - { - "operand": [], - "operator": "4", - "type": "INT" - } - ] - ], - "schema": [ - "INT", - "INT" - ] - } - } - } - }, - { - "filter": { - "condition": { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "operator": "EQ", - "type": "BOOL" - } - ], - "operator": "AND", - "type": "BOOLEAN" - }, - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - }, - { - "operand": [], - "operator": "2", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "3", - "type": "INT" - }, - { - "operand": [], - "operator": "4", - "type": "INT" - } - ] - ], - "schema": [ - "INT", - "INT" - ] - } - } - } - } - ], - "schemas": [] -} \ No newline at end of file diff --git a/tests/cockroach/norm/648.json b/tests/cockroach/norm/648.json deleted file mode 100644 index 28bea7c..0000000 --- a/tests/cockroach/norm/648.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "help": [ - "project\n ├── columns: add:5\n ├── cardinality: [3 - 3]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null\n │ ├── cardinality: [3 - 3]\n │ ├── (1,)\n │ ├── (2,)\n │ └── (3,)\n └── projections\n └── add(1, column1:1 + 10) [as=add:5, outer=(1), immutable, udf]\n", - "project\n ├── columns: add:5\n ├── cardinality: [3 - 3]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null\n │ ├── cardinality: [3 - 3]\n │ ├── (1,)\n │ ├── (2,)\n │ └── (3,)\n └── projections\n └── add(1, column1:1 + 10) [as=add:5, outer=(1), immutable, udf]\n" - ], - "queries": [ - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "2", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "3", - "type": "INT" - } - ] - ], - "schema": [ - "INT" - ] - } - }, - "target": [ - { - "operand": [ - { - "operand": [ - { - "operand": [], - "operator": "1", - "type": "INT" - }, - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "operand": [], - "operator": "10", - "type": "INT" - } - ], - "operator": "PLUS", - "type": "INT" - } - ], - "operator": "SCALAR LIST", - "type": "ANYELEMENT" - } - ], - "operator": "U D F", - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "2", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "3", - "type": "INT" - } - ] - ], - "schema": [ - "INT" - ] - } - }, - "target": [ - { - "operand": [ - { - "operand": [ - { - "operand": [], - "operator": "1", - "type": "INT" - }, - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "operand": [], - "operator": "10", - "type": "INT" - } - ], - "operator": "PLUS", - "type": "INT" - } - ], - "operator": "SCALAR LIST", - "type": "ANYELEMENT" - } - ], - "operator": "U D F", - "type": "INT" - } - ] - } - } - ], - "schemas": [] -} \ No newline at end of file diff --git a/tests/cockroach/norm/773.json b/tests/cockroach/norm/773.json deleted file mode 100644 index 045b8ae..0000000 --- a/tests/cockroach/norm/773.json +++ /dev/null @@ -1,418 +0,0 @@ -{ - "help": [ - "project\n ├── columns: x:1!null y:2 u:5!null v:6\n ├── immutable\n ├── key: (1,5)\n ├── fd: (1)--\u003e(2), (5)--\u003e(6)\n └── inner-join (cross)\n ├── columns: x:1!null y:2 xy.crdb_internal_mvcc_timestamp:3 xy.tableoid:4 u:5!null v:6 uv.crdb_internal_mvcc_timestamp:7 uv.tableoid:8\n ├── immutable\n ├── key: (1,5)\n ├── fd: (1)--\u003e(2-4), (5)--\u003e(6-8)\n ├── scan xy\n │ ├── columns: x:1!null y:2 xy.crdb_internal_mvcc_timestamp:3 xy.tableoid:4\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2-4)\n ├── scan uv\n │ ├── columns: u:5!null v:6 uv.crdb_internal_mvcc_timestamp:7 uv.tableoid:8\n │ ├── key: (5)\n │ └── fd: (5)--\u003e(6-8)\n └── filters\n └── (((x:1 + y:2) = u:5) AND (x:1 = (u:5 + v:6))) AND (((x:1 * y:2) + 1) = ((u:5 * v:6) + 2)) [outer=(1,2,5,6), immutable, constraints=(/1: (/NULL - ])]\n", - "project\n ├── columns: x:1!null y:2 u:5!null v:6\n ├── immutable\n ├── key: (1)\n ├── fd: (1)--\u003e(2,5,6), (5)--\u003e(1,2,6)\n └── inner-join (hash)\n ├── columns: x:1!null y:2 u:5!null v:6 column9:9!null column10:10!null column11:11!null column12:12!null\n ├── multiplicity: left-rows(zero-or-one), right-rows(zero-or-one)\n ├── immutable\n ├── key: (1)\n ├── fd: (1)--\u003e(2,9,11), (5)--\u003e(6,10,12), (5)==(9), (9)==(5), (1)==(10), (10)==(1), (11)==(12), (12)==(11)\n ├── project\n │ ├── columns: column11:11 column9:9 x:1!null y:2\n │ ├── immutable\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2,9,11)\n │ ├── scan xy\n │ │ ├── columns: x:1!null y:2\n │ │ ├── key: (1)\n │ │ └── fd: (1)--\u003e(2)\n │ └── projections\n │ ├── (x:1 * y:2) + 1 [as=column11:11, outer=(1,2), immutable]\n │ └── x:1 + y:2 [as=column9:9, outer=(1,2), immutable]\n ├── project\n │ ├── columns: column12:12 column10:10 u:5!null v:6\n │ ├── immutable\n │ ├── key: (5)\n │ ├── fd: (5)--\u003e(6,10,12)\n │ ├── scan uv\n │ │ ├── columns: u:5!null v:6\n │ │ ├── key: (5)\n │ │ └── fd: (5)--\u003e(6)\n │ └── projections\n │ ├── (u:5 * v:6) + 2 [as=column12:12, outer=(5,6), immutable]\n │ └── u:5 + v:6 [as=column10:10, outer=(5,6), immutable]\n └── filters\n ├── column9:9 = u:5 [outer=(5,9), constraints=(/5: (/NULL - ]; /9: (/NULL - ]), fd=(5)==(9), (9)==(5)]\n ├── x:1 = column10:10 [outer=(1,10), constraints=(/1: (/NULL - ]; /10: (/NULL - ]), fd=(1)==(10), (10)==(1)]\n └── column11:11 = column12:12 [outer=(11,12), constraints=(/11: (/NULL - ]; /12: (/NULL - ]), fd=(11)==(12), (12)==(11)]\n" - ], - "queries": [ - { - "project": { - "source": { - "join": { - "condition": { - "operand": [ - { - "operand": [ - { - "operand": [ - { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "operator": "PLUS", - "type": "INT" - }, - { - "column": 4, - "type": "INT" - } - ], - "operator": "EQ", - "type": "BOOL" - }, - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "operand": [ - { - "column": 4, - "type": "INT" - }, - { - "column": 5, - "type": "INT" - } - ], - "operator": "PLUS", - "type": "INT" - } - ], - "operator": "EQ", - "type": "BOOL" - } - ], - "operator": "AND", - "type": "BOOL" - }, - { - "operand": [ - { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "operator": "MULT", - "type": "INT" - }, - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - "operator": "PLUS", - "type": "INT" - }, - { - "operand": [ - { - "operand": [ - { - "column": 4, - "type": "INT" - }, - { - "column": 5, - "type": "INT" - } - ], - "operator": "MULT", - "type": "INT" - }, - { - "operand": [], - "operator": "2", - "type": "INT" - } - ], - "operator": "PLUS", - "type": "INT" - } - ], - "operator": "EQ", - "type": "BOOL" - } - ], - "operator": "AND", - "type": "BOOL" - } - ], - "operator": "AND", - "type": "BOOLEAN" - }, - "kind": "INNER", - "left": { - "scan": 0 - }, - "right": { - "scan": 1 - } - } - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 4, - "type": "INT" - }, - { - "column": 5, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "join": { - "condition": { - "operand": [ - { - "operand": [ - { - "column": 2, - "type": "INT" - }, - { - "column": 4, - "type": "INT" - } - ], - "operator": "EQ", - "type": "BOOL" - }, - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 6, - "type": "INT" - } - ], - "operator": "EQ", - "type": "BOOL" - }, - { - "operand": [ - { - "column": 3, - "type": "INT" - }, - { - "column": 7, - "type": "INT" - } - ], - "operator": "EQ", - "type": "BOOL" - } - ], - "operator": "AND", - "type": "BOOLEAN" - }, - "kind": "INNER", - "left": { - "project": { - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "operator": "PLUS", - "type": "INT" - }, - { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "operator": "MULT", - "type": "INT" - }, - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - "operator": "PLUS", - "type": "INT" - } - ] - } - }, - "right": { - "project": { - "source": { - "project": { - "source": { - "scan": 1 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "operator": "PLUS", - "type": "INT" - }, - { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "operator": "MULT", - "type": "INT" - }, - { - "operand": [], - "operator": "2", - "type": "INT" - } - ], - "operator": "PLUS", - "type": "INT" - } - ] - } - } - } - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 4, - "type": "INT" - }, - { - "column": 5, - "type": "INT" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "DECIMAL", - "OID" - ] - }, - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/816.json b/tests/cockroach/norm/816.json deleted file mode 100644 index 6ff67ce..0000000 --- a/tests/cockroach/norm/816.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "help": [ - "limit\n ├── columns: k:1!null i:2 f:3 s:4 j:5\n ├── key: (1)\n ├── fd: (1)--\u003e(2-5)\n ├── limit\n │ ├── columns: k:1!null i:2 f:3 s:4 j:5\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2-5)\n │ ├── limit hint: 5100000000.00\n │ ├── project\n │ │ ├── columns: k:1!null i:2 f:3 s:4 j:5\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2-5)\n │ │ ├── limit hint: 5000000000.00\n │ │ └── scan a\n │ │ ├── columns: k:1!null i:2 f:3 s:4 j:5 crdb_internal_mvcc_timestamp:6 tableoid:7\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2-7)\n │ │ └── limit hint: 5000000000.00\n │ └── 5000000000\n └── 5100000000\n", - "limit\n ├── columns: k:1!null i:2 f:3 s:4 j:5\n ├── key: (1)\n ├── fd: (1)--\u003e(2-5)\n ├── limit\n │ ├── columns: k:1!null i:2 f:3 s:4 j:5\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2-5)\n │ ├── limit hint: 5100000000.00\n │ ├── scan a\n │ │ ├── columns: k:1!null i:2 f:3 s:4 j:5\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2-5)\n │ │ └── limit hint: 5000000000.00\n │ └── 5000000000\n └── 5100000000\n" - ], - "queries": [ - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "5100000000", - "type": "INT" - }, - "source": { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "5000000000", - "type": "INT" - }, - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "FLOAT" - }, - { - "column": 3, - "type": "STRING" - }, - { - "column": 4, - "type": "JSONB" - } - ] - } - } - } - } - } - }, - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "5100000000", - "type": "INT" - }, - "source": { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "5000000000", - "type": "INT" - }, - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "FLOAT" - }, - { - "column": 3, - "type": "STRING" - }, - { - "column": 4, - "type": "JSONB" - } - ] - } - } - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "STRING", - "JSONB", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/825.json b/tests/cockroach/norm/825.json deleted file mode 100644 index 333b68d..0000000 --- a/tests/cockroach/norm/825.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "help": [ - "limit\n ├── columns: k:1!null i:2 f:3 s:4 j:5\n ├── cardinality: [0 - 0]\n ├── immutable\n ├── key: ()\n ├── fd: ()--\u003e(1-5)\n ├── project\n │ ├── columns: k:1!null i:2 f:3 s:4 j:5\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2-5)\n │ ├── limit hint: 1.00\n │ └── scan a\n │ ├── columns: k:1!null i:2 f:3 s:4 j:5 crdb_internal_mvcc_timestamp:6 tableoid:7\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2-7)\n │ └── limit hint: 1.00\n └── -1\n", - "limit\n ├── columns: k:1!null i:2 f:3 s:4 j:5\n ├── cardinality: [0 - 0]\n ├── immutable\n ├── key: ()\n ├── fd: ()--\u003e(1-5)\n ├── scan a\n │ ├── columns: k:1!null i:2 f:3 s:4 j:5\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2-5)\n │ └── limit hint: 1.00\n └── -1\n" - ], - "queries": [ - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "-1", - "type": "INT" - }, - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "FLOAT" - }, - { - "column": 3, - "type": "STRING" - }, - { - "column": 4, - "type": "JSONB" - } - ] - } - } - } - }, - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "-1", - "type": "INT" - }, - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "FLOAT" - }, - { - "column": 3, - "type": "STRING" - }, - { - "column": 4, - "type": "JSONB" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "STRING", - "JSONB", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/835.json b/tests/cockroach/norm/835.json deleted file mode 100644 index 028f8fc..0000000 --- a/tests/cockroach/norm/835.json +++ /dev/null @@ -1,177 +0,0 @@ -{ - "help": [ - "limit\n ├── columns: k:1!null i:2\n ├── internal-ordering: -2\n ├── cardinality: [0 - 10]\n ├── key: (1)\n ├── fd: (1)--\u003e(2)\n ├── ordering: -2\n ├── sort\n │ ├── columns: k:1!null i:2\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2)\n │ ├── ordering: -2\n │ ├── limit hint: 10.00\n │ └── offset\n │ ├── columns: k:1!null i:2\n │ ├── internal-ordering: +2\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2)\n │ ├── sort\n │ │ ├── columns: k:1!null i:2\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2)\n │ │ ├── ordering: +2\n │ │ └── project\n │ │ ├── columns: k:1!null i:2\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2)\n │ │ └── scan a\n │ │ ├── columns: k:1!null i:2 f:3 s:4 j:5 crdb_internal_mvcc_timestamp:6 tableoid:7\n │ │ ├── key: (1)\n │ │ └── fd: (1)--\u003e(2-7)\n │ └── 20\n └── 10\n", - "limit\n ├── columns: k:1!null i:2\n ├── internal-ordering: -2\n ├── cardinality: [0 - 10]\n ├── key: (1)\n ├── fd: (1)--\u003e(2)\n ├── ordering: -2\n ├── sort\n │ ├── columns: k:1!null i:2\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2)\n │ ├── ordering: -2\n │ ├── limit hint: 10.00\n │ └── offset\n │ ├── columns: k:1!null i:2\n │ ├── internal-ordering: +2\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2)\n │ ├── sort\n │ │ ├── columns: k:1!null i:2\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2)\n │ │ ├── ordering: +2\n │ │ └── scan a\n │ │ ├── columns: k:1!null i:2\n │ │ ├── key: (1)\n │ │ └── fd: (1)--\u003e(2)\n │ └── 20\n └── 10\n" - ], - "queries": [ - { - "sort": { - "collation": [ - [ - 1, - "INT", - "DESCENDING" - ] - ], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "sort": { - "collation": [ - [ - 1, - "INT", - "DESCENDING" - ] - ], - "source": { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ] - ], - "offset": { - "operand": [], - "operator": "20", - "type": "INT" - }, - "source": { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - } - } - } - } - } - } - } - }, - { - "sort": { - "collation": [ - [ - 1, - "INT", - "DESCENDING" - ] - ], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "sort": { - "collation": [ - [ - 1, - "INT", - "DESCENDING" - ] - ], - "source": { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ] - ], - "offset": { - "operand": [], - "operator": "20", - "type": "INT" - }, - "source": { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - } - } - } - } - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "STRING", - "JSONB", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/836.json b/tests/cockroach/norm/836.json deleted file mode 100644 index c1aad3a..0000000 --- a/tests/cockroach/norm/836.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "help": [ - "limit\n ├── columns: k:1!null i:2\n ├── key: (1)\n ├── fd: (1)--\u003e(2)\n ├── offset\n │ ├── columns: k:1!null i:2\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2)\n │ ├── limit hint: 9223372036854775808.00\n │ ├── project\n │ │ ├── columns: k:1!null i:2\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2)\n │ │ ├── limit hint: 18446744073709551616.00\n │ │ └── scan a\n │ │ ├── columns: k:1!null i:2 f:3 s:4 j:5 crdb_internal_mvcc_timestamp:6 tableoid:7\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2-7)\n │ │ └── limit hint: 18446744073709551616.00\n │ └── 9223372036854775807\n └── 9223372036854775807\n", - "limit\n ├── columns: k:1!null i:2\n ├── key: (1)\n ├── fd: (1)--\u003e(2)\n ├── offset\n │ ├── columns: k:1!null i:2\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2)\n │ ├── limit hint: 9223372036854775808.00\n │ ├── scan a\n │ │ ├── columns: k:1!null i:2\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2)\n │ │ └── limit hint: 18446744073709551616.00\n │ └── 9223372036854775807\n └── 9223372036854775807\n" - ], - "queries": [ - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "9223372036854775807", - "type": "INT" - }, - "source": { - "sort": { - "collation": [], - "offset": { - "operand": [], - "operator": "9223372036854775807", - "type": "INT" - }, - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - } - } - } - }, - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "9223372036854775807", - "type": "INT" - }, - "source": { - "sort": { - "collation": [], - "offset": { - "operand": [], - "operator": "9223372036854775807", - "type": "INT" - }, - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "STRING", - "JSONB", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/862.json b/tests/cockroach/norm/862.json deleted file mode 100644 index 171fd1b..0000000 --- a/tests/cockroach/norm/862.json +++ /dev/null @@ -1,171 +0,0 @@ -{ - "help": [ - "limit\n ├── columns: a:1!null b:2\n ├── internal-ordering: +1\n ├── cardinality: [0 - 5]\n ├── key: (1)\n ├── fd: (1)--\u003e(2)\n ├── ordering: +1\n ├── sort\n │ ├── columns: a:1!null b:2\n │ ├── cardinality: [0 - 10]\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2)\n │ ├── ordering: +1\n │ ├── limit hint: 5.00\n │ └── limit\n │ ├── columns: a:1!null b:2\n │ ├── internal-ordering: +2\n │ ├── cardinality: [0 - 10]\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2)\n │ ├── sort\n │ │ ├── columns: a:1!null b:2\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2)\n │ │ ├── ordering: +2\n │ │ ├── limit hint: 10.00\n │ │ └── project\n │ │ ├── columns: a:1!null b:2\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2)\n │ │ └── scan ab\n │ │ ├── columns: a:1!null b:2 crdb_internal_mvcc_timestamp:3 tableoid:4\n │ │ ├── key: (1)\n │ │ └── fd: (1)--\u003e(2-4)\n │ └── 10\n └── 5\n", - "limit\n ├── columns: a:1!null b:2\n ├── internal-ordering: +1\n ├── cardinality: [0 - 5]\n ├── key: (1)\n ├── fd: (1)--\u003e(2)\n ├── ordering: +1\n ├── sort\n │ ├── columns: a:1!null b:2\n │ ├── cardinality: [0 - 10]\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2)\n │ ├── ordering: +1\n │ ├── limit hint: 5.00\n │ └── limit\n │ ├── columns: a:1!null b:2\n │ ├── internal-ordering: +2\n │ ├── cardinality: [0 - 10]\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2)\n │ ├── sort\n │ │ ├── columns: a:1!null b:2\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2)\n │ │ ├── ordering: +2\n │ │ ├── limit hint: 10.00\n │ │ └── scan ab\n │ │ ├── columns: a:1!null b:2\n │ │ ├── key: (1)\n │ │ └── fd: (1)--\u003e(2)\n │ └── 10\n └── 5\n" - ], - "queries": [ - { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ] - ], - "limit": { - "operand": [], - "operator": "5", - "type": "INT" - }, - "source": { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ] - ], - "source": { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ] - ], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - } - } - } - } - } - } - } - }, - { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ] - ], - "limit": { - "operand": [], - "operator": "5", - "type": "INT" - }, - "source": { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ] - ], - "source": { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ] - ], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - } - } - } - } - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/863.json b/tests/cockroach/norm/863.json deleted file mode 100644 index 0c19419..0000000 --- a/tests/cockroach/norm/863.json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "help": [ - "limit\n ├── columns: k:1!null i:2 f:3 s:4 j:5\n ├── internal-ordering: +2,+3\n ├── cardinality: [0 - 5]\n ├── key: (1)\n ├── fd: (1)--\u003e(2-5)\n ├── ordering: +2,+3\n ├── sort (segmented)\n │ ├── columns: k:1!null i:2 f:3 s:4 j:5\n │ ├── cardinality: [0 - 10]\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2-5)\n │ ├── ordering: +2,+3\n │ ├── limit hint: 5.00\n │ └── limit\n │ ├── columns: k:1!null i:2 f:3 s:4 j:5\n │ ├── internal-ordering: +2\n │ ├── cardinality: [0 - 10]\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2-5)\n │ ├── ordering: +2\n │ ├── sort\n │ │ ├── columns: k:1!null i:2 f:3 s:4 j:5\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2-5)\n │ │ ├── ordering: +2\n │ │ ├── limit hint: 10.00\n │ │ └── project\n │ │ ├── columns: k:1!null i:2 f:3 s:4 j:5\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2-5)\n │ │ └── scan a\n │ │ ├── columns: k:1!null i:2 f:3 s:4 j:5 crdb_internal_mvcc_timestamp:6 tableoid:7\n │ │ ├── key: (1)\n │ │ └── fd: (1)--\u003e(2-7)\n │ └── 10\n └── 5\n", - "limit\n ├── columns: k:1!null i:2 f:3 s:4 j:5\n ├── internal-ordering: +2,+3\n ├── cardinality: [0 - 5]\n ├── key: (1)\n ├── fd: (1)--\u003e(2-5)\n ├── ordering: +2,+3\n ├── sort (segmented)\n │ ├── columns: k:1!null i:2 f:3 s:4 j:5\n │ ├── cardinality: [0 - 10]\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2-5)\n │ ├── ordering: +2,+3\n │ ├── limit hint: 5.00\n │ └── limit\n │ ├── columns: k:1!null i:2 f:3 s:4 j:5\n │ ├── internal-ordering: +2\n │ ├── cardinality: [0 - 10]\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2-5)\n │ ├── ordering: +2\n │ ├── sort\n │ │ ├── columns: k:1!null i:2 f:3 s:4 j:5\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2-5)\n │ │ ├── ordering: +2\n │ │ ├── limit hint: 10.00\n │ │ └── scan a\n │ │ ├── columns: k:1!null i:2 f:3 s:4 j:5\n │ │ ├── key: (1)\n │ │ └── fd: (1)--\u003e(2-5)\n │ └── 10\n └── 5\n" - ], - "queries": [ - { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ], - [ - 2, - "FLOAT", - "ASCENDING" - ] - ], - "limit": { - "operand": [], - "operator": "5", - "type": "INT" - }, - "source": { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ], - [ - 2, - "FLOAT", - "ASCENDING" - ] - ], - "source": { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ] - ], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "FLOAT" - }, - { - "column": 3, - "type": "STRING" - }, - { - "column": 4, - "type": "JSONB" - } - ] - } - } - } - } - } - } - } - } - } - }, - { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ], - [ - 2, - "FLOAT", - "ASCENDING" - ] - ], - "limit": { - "operand": [], - "operator": "5", - "type": "INT" - }, - "source": { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ], - [ - 2, - "FLOAT", - "ASCENDING" - ] - ], - "source": { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ] - ], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "FLOAT" - }, - { - "column": 3, - "type": "STRING" - }, - { - "column": 4, - "type": "JSONB" - } - ] - } - } - } - } - } - } - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "STRING", - "JSONB", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/892.json b/tests/cockroach/norm/892.json deleted file mode 100644 index ac1d542..0000000 --- a/tests/cockroach/norm/892.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "help": [ - "project\n ├── columns: \"?column?\":8\n ├── scan a\n │ ├── columns: k:1!null i:2 f:3 d:4 t:5 crdb_internal_mvcc_timestamp:6 tableoid:7\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2-7)\n └── projections\n └── i:2 / 1 [as=\"?column?\":8, outer=(2)]\n", - "project\n ├── columns: \"?column?\":8\n ├── immutable\n ├── scan a\n │ └── columns: i:2\n └── projections\n └── i:2::DECIMAL [as=\"?column?\":8, outer=(2), immutable]\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "operand": [ - { - "column": 1, - "type": "INT" - }, - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - "operator": "DIV", - "type": "DECIMAL" - } - ] - } - }, - { - "project": { - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - }, - "target": [ - { - "operand": [ - { - "column": 0, - "type": "INT" - } - ], - "operator": "CAST", - "type": "DECIMAL" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "DECIMAL", - "TIME", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/924.json b/tests/cockroach/norm/924.json deleted file mode 100644 index 530aeed..0000000 --- a/tests/cockroach/norm/924.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "help": [ - "project\n ├── columns: x:1!null y:2\n ├── key: (1)\n ├── fd: (1)--\u003e(2)\n └── scan a\n ├── columns: x:1!null y:2 f:3 s:4 crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── key: (1)\n └── fd: (1)--\u003e(2-6)\n", - "scan a\n ├── columns: x:1!null y:2\n ├── key: (1)\n └── fd: (1)--\u003e(2)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "STRING", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/925.json b/tests/cockroach/norm/925.json deleted file mode 100644 index ab82942..0000000 --- a/tests/cockroach/norm/925.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "help": [ - "project\n ├── columns: aliasy:2 x:1!null\n ├── key: (1)\n ├── fd: (1)--\u003e(2)\n └── scan a\n ├── columns: x:1!null y:2 f:3 s:4 crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── key: (1)\n └── fd: (1)--\u003e(2-6)\n", - "scan a\n ├── columns: aliasy:2 x:1!null\n ├── key: (1)\n └── fd: (1)--\u003e(2)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "STRING", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/926.json b/tests/cockroach/norm/926.json deleted file mode 100644 index b2922cd..0000000 --- a/tests/cockroach/norm/926.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "help": [ - "project\n ├── columns: alias1:2 x:1!null alias1:2 x:1!null\n ├── key: (1)\n ├── fd: (1)--\u003e(2)\n └── scan a\n ├── columns: x:1!null y:2 f:3 s:4 crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── key: (1)\n └── fd: (1)--\u003e(2-6)\n", - "scan a\n ├── columns: alias1:2 x:1!null alias1:2 x:1!null\n ├── key: (1)\n └── fd: (1)--\u003e(2)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "STRING", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/932.json b/tests/cockroach/norm/932.json deleted file mode 100644 index ae37e73..0000000 --- a/tests/cockroach/norm/932.json +++ /dev/null @@ -1,163 +0,0 @@ -{ - "help": [ - "project\n ├── columns: \"?column?\":8 \"?column?\":9\n ├── immutable\n ├── project\n │ ├── columns: y1:7\n │ ├── immutable\n │ ├── scan a\n │ │ ├── columns: x:1!null y:2 f:3 s:4 crdb_internal_mvcc_timestamp:5 tableoid:6\n │ │ ├── key: (1)\n │ │ └── fd: (1)--\u003e(2-6)\n │ └── projections\n │ └── y:2 + 1 [as=y1:7, outer=(2), immutable]\n └── projections\n ├── y1:7 * 2 [as=\"?column?\":8, outer=(7), immutable]\n └── y1:7 / 2 [as=\"?column?\":9, outer=(7)]\n", - "project\n ├── columns: \"?column?\":8 \"?column?\":9\n ├── immutable\n ├── project\n │ ├── columns: y1:7\n │ ├── immutable\n │ ├── scan a\n │ │ └── columns: y:2\n │ └── projections\n │ └── y:2 + 1 [as=y1:7, outer=(2), immutable]\n └── projections\n ├── y1:7 * 2 [as=\"?column?\":8, outer=(7), immutable]\n └── y1:7 / 2 [as=\"?column?\":9, outer=(7)]\n" - ], - "queries": [ - { - "project": { - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "operand": [ - { - "column": 1, - "type": "INT" - }, - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - "operator": "PLUS", - "type": "INT" - } - ] - } - }, - "target": [ - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "operand": [], - "operator": "2", - "type": "INT" - } - ], - "operator": "MULT", - "type": "INT" - }, - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "operand": [], - "operator": "2", - "type": "INT" - } - ], - "operator": "DIV", - "type": "DECIMAL" - } - ] - } - }, - { - "project": { - "source": { - "project": { - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - }, - "target": [ - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - "operator": "PLUS", - "type": "INT" - } - ] - } - }, - "target": [ - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "operand": [], - "operator": "2", - "type": "INT" - } - ], - "operator": "MULT", - "type": "INT" - }, - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "operand": [], - "operator": "2", - "type": "INT" - } - ], - "operator": "DIV", - "type": "DECIMAL" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "STRING", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/norm/971.json b/tests/cockroach/norm/971.json deleted file mode 100644 index 45164a4..0000000 --- a/tests/cockroach/norm/971.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "help": [ - "project\n ├── columns: \"?column?\":2!null\n ├── cardinality: [3 - 3]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null\n │ ├── cardinality: [3 - 3]\n │ ├── (1,)\n │ ├── (2,)\n │ └── (3,)\n └── projections\n └── column1:1 + 10 [as=\"?column?\":2, outer=(1), immutable]\n", - "project\n ├── columns: \"?column?\":2!null\n ├── cardinality: [3 - 3]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null\n │ ├── cardinality: [3 - 3]\n │ ├── (1,)\n │ ├── (2,)\n │ └── (3,)\n └── projections\n └── column1:1 + 10 [as=\"?column?\":2, outer=(1), immutable]\n" - ], - "queries": [ - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "2", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "3", - "type": "INT" - } - ] - ], - "schema": [ - "INT" - ] - } - }, - "target": [ - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "operand": [], - "operator": "10", - "type": "INT" - } - ], - "operator": "PLUS", - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "2", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "3", - "type": "INT" - } - ] - ], - "schema": [ - "INT" - ] - } - }, - "target": [ - { - "operand": [ - { - "column": 0, - "type": "INT" - }, - { - "operand": [], - "operator": "10", - "type": "INT" - } - ], - "operator": "PLUS", - "type": "INT" - } - ] - } - } - ], - "schemas": [] -} \ No newline at end of file diff --git a/tests/cockroach/norm/980.json b/tests/cockroach/norm/980.json deleted file mode 100644 index 686af6d..0000000 --- a/tests/cockroach/norm/980.json +++ /dev/null @@ -1,123 +0,0 @@ -{ - "help": [ - "project\n ├── columns: x:2\n ├── cardinality: [3 - 3]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null\n │ ├── cardinality: [3 - 3]\n │ ├── ('{\"x\": \"one\"}',)\n │ ├── ('{\"x\": \"two\"}',)\n │ └── ('{\"x\": \"three\"}',)\n └── projections\n └── column1:1::JSONB-\u003e'x' [as=x:2, outer=(1), immutable]\n", - "project\n ├── columns: x:2\n ├── cardinality: [3 - 3]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null\n │ ├── cardinality: [3 - 3]\n │ ├── ('{\"x\": \"one\"}',)\n │ ├── ('{\"x\": \"two\"}',)\n │ └── ('{\"x\": \"three\"}',)\n └── projections\n └── column1:1::JSONB-\u003e'x' [as=x:2, outer=(1), immutable]\n" - ], - "queries": [ - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "'{\"x\": \"one\"}'", - "type": "STRING" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"two\"}'", - "type": "STRING" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"three\"}'", - "type": "STRING" - } - ] - ], - "schema": [ - "STRING" - ] - } - }, - "target": [ - { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "STRING" - } - ], - "operator": "CAST", - "type": "JSONB" - }, - { - "operand": [], - "operator": "'x'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - } - ] - } - }, - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "'{\"x\": \"one\"}'", - "type": "STRING" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"two\"}'", - "type": "STRING" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"three\"}'", - "type": "STRING" - } - ] - ], - "schema": [ - "STRING" - ] - } - }, - "target": [ - { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "STRING" - } - ], - "operator": "CAST", - "type": "JSONB" - }, - { - "operand": [], - "operator": "'x'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - } - ] - } - } - ], - "schemas": [] -} \ No newline at end of file diff --git a/tests/cockroach/norm/982.json b/tests/cockroach/norm/982.json deleted file mode 100644 index 9b635a6..0000000 --- a/tests/cockroach/norm/982.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "help": [ - "project\n ├── columns: x:2\n ├── cardinality: [3 - 3]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null\n │ ├── cardinality: [3 - 3]\n │ ├── ('null',)\n │ ├── ('{\"x\": \"two\"}',)\n │ └── ('{\"x\": \"three\"}',)\n └── projections\n └── column1:1-\u003e'x' [as=x:2, outer=(1), immutable]\n", - "project\n ├── columns: x:2\n ├── cardinality: [3 - 3]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null\n │ ├── cardinality: [3 - 3]\n │ ├── ('null',)\n │ ├── ('{\"x\": \"two\"}',)\n │ └── ('{\"x\": \"three\"}',)\n └── projections\n └── column1:1-\u003e'x' [as=x:2, outer=(1), immutable]\n" - ], - "queries": [ - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "'null'", - "type": "JSONB" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"two\"}'", - "type": "JSONB" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"three\"}'", - "type": "JSONB" - } - ] - ], - "schema": [ - "JSONB" - ] - } - }, - "target": [ - { - "operand": [ - { - "column": 0, - "type": "JSONB" - }, - { - "operand": [], - "operator": "'x'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - } - ] - } - }, - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "'null'", - "type": "JSONB" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"two\"}'", - "type": "JSONB" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"three\"}'", - "type": "JSONB" - } - ] - ], - "schema": [ - "JSONB" - ] - } - }, - "target": [ - { - "operand": [ - { - "column": 0, - "type": "JSONB" - }, - { - "operand": [], - "operator": "'x'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - } - ] - } - } - ], - "schemas": [] -} \ No newline at end of file diff --git a/tests/cockroach/norm/983.json b/tests/cockroach/norm/983.json deleted file mode 100644 index bccd086..0000000 --- a/tests/cockroach/norm/983.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "help": [ - "project\n ├── columns: x1:3 x2:4\n ├── cardinality: [2 - 2]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null column2:2!null\n │ ├── cardinality: [2 - 2]\n │ ├── ('{\"x\": \"one\"}', '{\"x\": \"two\"}')\n │ └── ('{\"x\": \"three\"}', '{\"x\": \"four\"}')\n └── projections\n ├── column1:1-\u003e'x' [as=x1:3, outer=(1), immutable]\n └── column2:2-\u003e'x' [as=x2:4, outer=(2), immutable]\n", - "project\n ├── columns: x1:3 x2:4\n ├── cardinality: [2 - 2]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null column2:2!null\n │ ├── cardinality: [2 - 2]\n │ ├── ('{\"x\": \"one\"}', '{\"x\": \"two\"}')\n │ └── ('{\"x\": \"three\"}', '{\"x\": \"four\"}')\n └── projections\n ├── column1:1-\u003e'x' [as=x1:3, outer=(1), immutable]\n └── column2:2-\u003e'x' [as=x2:4, outer=(2), immutable]\n" - ], - "queries": [ - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "'{\"x\": \"one\"}'", - "type": "JSONB" - }, - { - "operand": [], - "operator": "'{\"x\": \"two\"}'", - "type": "JSONB" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"three\"}'", - "type": "JSONB" - }, - { - "operand": [], - "operator": "'{\"x\": \"four\"}'", - "type": "JSONB" - } - ] - ], - "schema": [ - "JSONB", - "JSONB" - ] - } - }, - "target": [ - { - "operand": [ - { - "column": 0, - "type": "JSONB" - }, - { - "operand": [], - "operator": "'x'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - }, - { - "operand": [ - { - "column": 1, - "type": "JSONB" - }, - { - "operand": [], - "operator": "'x'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - } - ] - } - }, - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "'{\"x\": \"one\"}'", - "type": "JSONB" - }, - { - "operand": [], - "operator": "'{\"x\": \"two\"}'", - "type": "JSONB" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"three\"}'", - "type": "JSONB" - }, - { - "operand": [], - "operator": "'{\"x\": \"four\"}'", - "type": "JSONB" - } - ] - ], - "schema": [ - "JSONB", - "JSONB" - ] - } - }, - "target": [ - { - "operand": [ - { - "column": 0, - "type": "JSONB" - }, - { - "operand": [], - "operator": "'x'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - }, - { - "operand": [ - { - "column": 1, - "type": "JSONB" - }, - { - "operand": [], - "operator": "'x'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - } - ] - } - } - ], - "schemas": [] -} \ No newline at end of file diff --git a/tests/cockroach/norm/984.json b/tests/cockroach/norm/984.json deleted file mode 100644 index fae2dd0..0000000 --- a/tests/cockroach/norm/984.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "help": [ - "project\n ├── columns: x:2 j:1!null\n ├── cardinality: [2 - 2]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null\n │ ├── cardinality: [2 - 2]\n │ ├── ('{\"x\": \"one\"}',)\n │ └── ('{\"x\": \"two\"}',)\n └── projections\n └── column1:1-\u003e'x' [as=x:2, outer=(1), immutable]\n", - "project\n ├── columns: x:2 j:1!null\n ├── cardinality: [2 - 2]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null\n │ ├── cardinality: [2 - 2]\n │ ├── ('{\"x\": \"one\"}',)\n │ └── ('{\"x\": \"two\"}',)\n └── projections\n └── column1:1-\u003e'x' [as=x:2, outer=(1), immutable]\n" - ], - "queries": [ - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "'{\"x\": \"one\"}'", - "type": "JSONB" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"two\"}'", - "type": "JSONB" - } - ] - ], - "schema": [ - "JSONB" - ] - } - }, - "target": [ - { - "column": 0, - "type": "JSONB" - }, - { - "operand": [ - { - "column": 0, - "type": "JSONB" - }, - { - "operand": [], - "operator": "'x'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - } - ] - } - }, - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "'{\"x\": \"one\"}'", - "type": "JSONB" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"two\"}'", - "type": "JSONB" - } - ] - ], - "schema": [ - "JSONB" - ] - } - }, - "target": [ - { - "column": 0, - "type": "JSONB" - }, - { - "operand": [ - { - "column": 0, - "type": "JSONB" - }, - { - "operand": [], - "operator": "'x'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - } - ] - } - } - ], - "schemas": [] -} \ No newline at end of file diff --git a/tests/cockroach/norm/987.json b/tests/cockroach/norm/987.json deleted file mode 100644 index 50e9e4f..0000000 --- a/tests/cockroach/norm/987.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "help": [ - "project\n ├── columns: x:2 y:3\n ├── cardinality: [3 - 3]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null\n │ ├── cardinality: [3 - 3]\n │ ├── ('{\"x\": \"one\"}',)\n │ ├── ('{\"x\": \"two\"}',)\n │ └── ('{\"x\": \"three\"}',)\n └── projections\n ├── column1:1::JSONB-\u003e'x' [as=x:2, outer=(1), immutable]\n └── column1:1::JSONB-\u003e'y' [as=y:3, outer=(1), immutable]\n", - "project\n ├── columns: x:2 y:3\n ├── cardinality: [3 - 3]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null\n │ ├── cardinality: [3 - 3]\n │ ├── ('{\"x\": \"one\"}',)\n │ ├── ('{\"x\": \"two\"}',)\n │ └── ('{\"x\": \"three\"}',)\n └── projections\n ├── column1:1::JSONB-\u003e'x' [as=x:2, outer=(1), immutable]\n └── column1:1::JSONB-\u003e'y' [as=y:3, outer=(1), immutable]\n" - ], - "queries": [ - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "'{\"x\": \"one\"}'", - "type": "STRING" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"two\"}'", - "type": "STRING" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"three\"}'", - "type": "STRING" - } - ] - ], - "schema": [ - "STRING" - ] - } - }, - "target": [ - { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "STRING" - } - ], - "operator": "CAST", - "type": "JSONB" - }, - { - "operand": [], - "operator": "'x'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - }, - { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "STRING" - } - ], - "operator": "CAST", - "type": "JSONB" - }, - { - "operand": [], - "operator": "'y'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - } - ] - } - }, - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "'{\"x\": \"one\"}'", - "type": "STRING" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"two\"}'", - "type": "STRING" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"three\"}'", - "type": "STRING" - } - ] - ], - "schema": [ - "STRING" - ] - } - }, - "target": [ - { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "STRING" - } - ], - "operator": "CAST", - "type": "JSONB" - }, - { - "operand": [], - "operator": "'x'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - }, - { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "STRING" - } - ], - "operator": "CAST", - "type": "JSONB" - }, - { - "operand": [], - "operator": "'y'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - } - ] - } - } - ], - "schemas": [] -} \ No newline at end of file diff --git a/tests/cockroach/norm/988.json b/tests/cockroach/norm/988.json deleted file mode 100644 index 2133fa9..0000000 --- a/tests/cockroach/norm/988.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "help": [ - "project\n ├── columns: x:2 y:3\n ├── cardinality: [3 - 3]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null\n │ ├── cardinality: [3 - 3]\n │ ├── ('{\"x\": \"one\"}',)\n │ ├── ('{\"x\": \"two\", \"y\": \"blue\"}',)\n │ └── ('{\"x\": \"three\", \"y\": \"red\"}',)\n └── projections\n ├── column1:1::JSONB-\u003e'x' [as=x:2, outer=(1), immutable]\n └── column1:1::JSONB-\u003e'y' [as=y:3, outer=(1), immutable]\n", - "project\n ├── columns: x:2 y:3\n ├── cardinality: [3 - 3]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null\n │ ├── cardinality: [3 - 3]\n │ ├── ('{\"x\": \"one\"}',)\n │ ├── ('{\"x\": \"two\", \"y\": \"blue\"}',)\n │ └── ('{\"x\": \"three\", \"y\": \"red\"}',)\n └── projections\n ├── column1:1::JSONB-\u003e'x' [as=x:2, outer=(1), immutable]\n └── column1:1::JSONB-\u003e'y' [as=y:3, outer=(1), immutable]\n" - ], - "queries": [ - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "'{\"x\": \"one\"}'", - "type": "STRING" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"two\", \"y\": \"blue\"}'", - "type": "STRING" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"three\", \"y\": \"red\"}'", - "type": "STRING" - } - ] - ], - "schema": [ - "STRING" - ] - } - }, - "target": [ - { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "STRING" - } - ], - "operator": "CAST", - "type": "JSONB" - }, - { - "operand": [], - "operator": "'x'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - }, - { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "STRING" - } - ], - "operator": "CAST", - "type": "JSONB" - }, - { - "operand": [], - "operator": "'y'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - } - ] - } - }, - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "'{\"x\": \"one\"}'", - "type": "STRING" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"two\", \"y\": \"blue\"}'", - "type": "STRING" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"three\", \"y\": \"red\"}'", - "type": "STRING" - } - ] - ], - "schema": [ - "STRING" - ] - } - }, - "target": [ - { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "STRING" - } - ], - "operator": "CAST", - "type": "JSONB" - }, - { - "operand": [], - "operator": "'x'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - }, - { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "STRING" - } - ], - "operator": "CAST", - "type": "JSONB" - }, - { - "operand": [], - "operator": "'y'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - } - ] - } - } - ], - "schemas": [] -} \ No newline at end of file diff --git a/tests/cockroach/norm/989.json b/tests/cockroach/norm/989.json deleted file mode 100644 index 1e83415..0000000 --- a/tests/cockroach/norm/989.json +++ /dev/null @@ -1,123 +0,0 @@ -{ - "help": [ - "project\n ├── columns: x:2\n ├── cardinality: [3 - 3]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null\n │ ├── cardinality: [3 - 3]\n │ ├── ('{\"x\": \"one\"}',)\n │ ├── ('{\"x\": \"two\"}',)\n │ └── ('{\"y\": \"three\"}',)\n └── projections\n └── column1:1::JSONB-\u003e'x' [as=x:2, outer=(1), immutable]\n", - "project\n ├── columns: x:2\n ├── cardinality: [3 - 3]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null\n │ ├── cardinality: [3 - 3]\n │ ├── ('{\"x\": \"one\"}',)\n │ ├── ('{\"x\": \"two\"}',)\n │ └── ('{\"y\": \"three\"}',)\n └── projections\n └── column1:1::JSONB-\u003e'x' [as=x:2, outer=(1), immutable]\n" - ], - "queries": [ - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "'{\"x\": \"one\"}'", - "type": "STRING" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"two\"}'", - "type": "STRING" - } - ], - [ - { - "operand": [], - "operator": "'{\"y\": \"three\"}'", - "type": "STRING" - } - ] - ], - "schema": [ - "STRING" - ] - } - }, - "target": [ - { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "STRING" - } - ], - "operator": "CAST", - "type": "JSONB" - }, - { - "operand": [], - "operator": "'x'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - } - ] - } - }, - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "'{\"x\": \"one\"}'", - "type": "STRING" - } - ], - [ - { - "operand": [], - "operator": "'{\"x\": \"two\"}'", - "type": "STRING" - } - ], - [ - { - "operand": [], - "operator": "'{\"y\": \"three\"}'", - "type": "STRING" - } - ] - ], - "schema": [ - "STRING" - ] - } - }, - "target": [ - { - "operand": [ - { - "operand": [ - { - "column": 0, - "type": "STRING" - } - ], - "operator": "CAST", - "type": "JSONB" - }, - { - "operand": [], - "operator": "'x'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - } - ] - } - } - ], - "schemas": [] -} \ No newline at end of file diff --git a/tests/cockroach/norm/990.json b/tests/cockroach/norm/990.json deleted file mode 100644 index 652beeb..0000000 --- a/tests/cockroach/norm/990.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "help": [ - "project\n ├── columns: \"?column?\":2\n ├── cardinality: [2 - 2]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null\n │ ├── cardinality: [2 - 2]\n │ ├── ('{\"foo\": \"bar\"}',)\n │ └── ('[\"foo\", \"baz\"]',)\n └── projections\n └── column1:1-\u003e'foo' [as=\"?column?\":2, outer=(1), immutable]\n", - "project\n ├── columns: \"?column?\":2\n ├── cardinality: [2 - 2]\n ├── immutable\n ├── values\n │ ├── columns: column1:1!null\n │ ├── cardinality: [2 - 2]\n │ ├── ('{\"foo\": \"bar\"}',)\n │ └── ('[\"foo\", \"baz\"]',)\n └── projections\n └── column1:1-\u003e'foo' [as=\"?column?\":2, outer=(1), immutable]\n" - ], - "queries": [ - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "'{\"foo\": \"bar\"}'", - "type": "JSONB" - } - ], - [ - { - "operand": [], - "operator": "'[\"foo\", \"baz\"]'", - "type": "JSONB" - } - ] - ], - "schema": [ - "JSONB" - ] - } - }, - "target": [ - { - "operand": [ - { - "column": 0, - "type": "JSONB" - }, - { - "operand": [], - "operator": "'foo'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - } - ] - } - }, - { - "project": { - "source": { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "'{\"foo\": \"bar\"}'", - "type": "JSONB" - } - ], - [ - { - "operand": [], - "operator": "'[\"foo\", \"baz\"]'", - "type": "JSONB" - } - ] - ], - "schema": [ - "JSONB" - ] - } - }, - "target": [ - { - "operand": [ - { - "column": 0, - "type": "JSONB" - }, - { - "operand": [], - "operator": "'foo'", - "type": "STRING" - } - ], - "operator": "FETCH VAL", - "type": "JSONB" - } - ] - } - } - ], - "schemas": [] -} \ No newline at end of file diff --git a/tests/cockroach/xform/0.json b/tests/cockroach/xform/0.json deleted file mode 100644 index 03edcc4..0000000 --- a/tests/cockroach/xform/0.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "help": [ - "group-by (hash)\n ├── columns: max:7!null min:8!null i:2 s:3\n ├── grouping columns: i:2 s:3\n ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n ├── cost: 1199.21625\n ├── key: (2,3)\n ├── fd: (2,3)--\u003e(7,8)\n ├── project\n │ ├── columns: k:1!null i:2 s:3\n │ ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n │ ├── cost: 1139.04\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2,3)\n │ └── scan a\n │ ├── columns: k:1!null i:2 s:3 d:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n │ ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n │ ├── cost: 1129.02\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2-6)\n └── aggregations\n ├── max [as=max:7, outer=(1)]\n │ └── k:1\n └── min [as=min:8, outer=(1)]\n └── k:1\n", - "group-by (hash)\n ├── columns: max:7!null min:8!null i:2 s:3\n ├── grouping columns: i:2 s:3\n ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n ├── cost: 1158.89625\n ├── key: (2,3)\n ├── fd: (2,3)--\u003e(7,8)\n ├── scan a\n │ ├── columns: k:1!null i:2 s:3\n │ ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n │ ├── cost: 1098.72\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2,3)\n └── aggregations\n ├── max [as=max:7, outer=(1)]\n │ └── k:1\n └── min [as=min:8, outer=(1)]\n └── k:1\n" - ], - "queries": [ - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 0, - "type": "INT" - } - ], - "operator": "MAX", - "type": "INT" - }, - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 0, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - } - } - }, - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 0, - "type": "INT" - } - ], - "operator": "MAX", - "type": "INT" - }, - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 0, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "STRING", - "DECIMAL", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/1.json b/tests/cockroach/xform/1.json deleted file mode 100644 index a86fa50..0000000 --- a/tests/cockroach/xform/1.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "help": [ - "group-by (hash)\n ├── columns: a:2 count:7!null\n ├── grouping columns: a:2\n ├── stats: [rows=100, distinct(2)=100, null(2)=1]\n ├── cost: 1170.07056\n ├── key: (2)\n ├── fd: (2)--\u003e(7)\n ├── project\n │ ├── columns: a:2\n │ ├── stats: [rows=1000, distinct(2)=100, null(2)=10]\n │ ├── cost: 1139.04\n │ └── scan b\n │ ├── columns: k:1!null a:2 b:3 c:4 crdb_internal_mvcc_timestamp:5 tableoid:6\n │ ├── stats: [rows=1000, distinct(2)=100, null(2)=10]\n │ ├── cost: 1129.02\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2-6)\n └── aggregations\n └── count-rows [as=count_rows:7]\n", - "group-by (streaming)\n ├── columns: a:2 count:7!null\n ├── grouping columns: a:2\n ├── internal-ordering: +2\n ├── stats: [rows=100, distinct(2)=100, null(2)=1]\n ├── cost: 1089.45\n ├── key: (2)\n ├── fd: (2)--\u003e(7)\n ├── scan b@b_a_b_idx\n │ ├── columns: a:2\n │ ├── stats: [rows=1000, distinct(2)=100, null(2)=10]\n │ ├── cost: 1068.42\n │ └── ordering: +2\n └── aggregations\n └── count-rows [as=count_rows:7]\n" - ], - "queries": [ - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - } - } - }, - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/110.json b/tests/cockroach/xform/110.json deleted file mode 100644 index ea4ba5a..0000000 --- a/tests/cockroach/xform/110.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "help": [ - "project\n ├── columns: a:1(int!null) b:2(int) c:3(string)\n ├── stats: [rows=1000]\n ├── cost: 1168.70667\n ├── key: (1)\n ├── fd: (1)--\u003e(2,3), (2,3)~~\u003e(1)\n ├── distribution: central\n ├── prune: (1-3)\n └── scan t.public.abc\n ├── columns: t.public.abc.a:1(int!null) t.public.abc.b:2(int) t.public.abc.c:3(string) t.public.abc.crdb_internal_mvcc_timestamp:4(decimal) t.public.abc.tableoid:5(oid)\n ├── stats: [rows=1000]\n ├── cost: 1158.68667\n ├── key: (1)\n ├── fd: (1)--\u003e(2-5), (2,3)~~\u003e(1,4,5)\n ├── distribution: central\n └── prune: (1-5)\n", - "scan t.public.abc\n ├── columns: a:1(int!null) b:2(int) c:3(string)\n ├── stats: [rows=1000]\n ├── cost: 1125.02\n ├── key: (1)\n ├── fd: (1)--\u003e(2,3), (2,3)~~\u003e(1)\n ├── distribution: central\n └── prune: (1-3)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "STRING", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/114.json b/tests/cockroach/xform/114.json deleted file mode 100644 index 4ab3f3b..0000000 --- a/tests/cockroach/xform/114.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "help": [ - "project\n ├── columns: a:1(int!null) b:2(int) c:3(string)\n ├── stats: [rows=1000]\n ├── cost: 1168.70667\n ├── key: (1)\n ├── fd: (1)--\u003e(2,3), (2,3)~~\u003e(1)\n ├── distribution: us\n ├── prune: (1-3)\n └── scan t.public.abc\n ├── columns: t.public.abc.a:1(int!null) t.public.abc.b:2(int) t.public.abc.c:3(string) t.public.abc.crdb_internal_mvcc_timestamp:4(decimal) t.public.abc.tableoid:5(oid)\n ├── stats: [rows=1000]\n ├── cost: 1158.68667\n ├── key: (1)\n ├── fd: (1)--\u003e(2-5), (2,3)~~\u003e(1,4,5)\n ├── distribution: us\n └── prune: (1-5)\n", - "scan t.public.abc\n ├── columns: a:1(int!null) b:2(int) c:3(string)\n ├── stats: [rows=1000]\n ├── cost: 1125.02\n ├── key: (1)\n ├── fd: (1)--\u003e(2,3), (2,3)~~\u003e(1)\n ├── distribution: us\n └── prune: (1-3)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "STRING", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/118.json b/tests/cockroach/xform/118.json deleted file mode 100644 index 090dc8b..0000000 --- a/tests/cockroach/xform/118.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "help": [ - "project\n ├── columns: a:1(int!null) b:2(int) c:3(string)\n ├── stats: [rows=1000]\n ├── cost: 1141.77333\n ├── key: (1)\n ├── fd: (1)--\u003e(2,3), (2,3)~~\u003e(1)\n ├── distribution: us\n ├── prune: (1-3)\n └── scan t.public.abc\n ├── columns: t.public.abc.a:1(int!null) t.public.abc.b:2(int) t.public.abc.c:3(string) t.public.abc.crdb_internal_mvcc_timestamp:4(decimal) t.public.abc.tableoid:5(oid)\n ├── stats: [rows=1000]\n ├── cost: 1131.75333\n ├── key: (1)\n ├── fd: (1)--\u003e(2-5), (2,3)~~\u003e(1,4,5)\n ├── distribution: us\n └── prune: (1-5)\n", - "scan t.public.abc\n ├── columns: a:1(int!null) b:2(int) c:3(string)\n ├── stats: [rows=1000]\n ├── cost: 1104.82\n ├── key: (1)\n ├── fd: (1)--\u003e(2,3), (2,3)~~\u003e(1)\n ├── distribution: us\n └── prune: (1-3)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "STRING", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/125.json b/tests/cockroach/xform/125.json deleted file mode 100644 index 13c4dae..0000000 --- a/tests/cockroach/xform/125.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "help": [ - "project\n ├── columns: a:1!null\n ├── key: (1)\n ├── distribution: us\n └── scan abc\n ├── columns: a:1!null b:2 c:3 crdb_internal_mvcc_timestamp:4 tableoid:5\n ├── key: (1)\n ├── fd: (1)--\u003e(2-5), (2,3)~~\u003e(1,4,5)\n └── distribution: us\n", - "scan abc\n ├── columns: a:1!null\n ├── key: (1)\n └── distribution: us\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "STRING", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/1310.json b/tests/cockroach/xform/1310.json deleted file mode 100644 index 432605d..0000000 --- a/tests/cockroach/xform/1310.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "help": [ - "group-by (hash)\n ├── columns: id:1 sum:16\n ├── grouping columns: id:1\n ├── key: (1)\n ├── fd: (1)--\u003e(16)\n ├── project\n │ ├── columns: id:1 value:2\n │ └── scan data\n │ ├── columns: id:1 value:2 col1:3 col2:4 col3:5 col4:6 col5:7 col6:8 col7:9 col8:10 col9:11 col10:12 rowid:13!null crdb_internal_mvcc_timestamp:14 tableoid:15\n │ ├── key: (13)\n │ └── fd: (13)--\u003e(1-12,14,15)\n └── aggregations\n └── sum [as=sum:16, outer=(2)]\n └── value:2\n", - "group-by (streaming)\n ├── columns: id:1 sum:16\n ├── grouping columns: id:1\n ├── internal-ordering: +1\n ├── key: (1)\n ├── fd: (1)--\u003e(16)\n ├── scan data@foo\n │ ├── columns: id:1 value:2\n │ └── ordering: +1\n └── aggregations\n └── sum [as=sum:16, outer=(2)]\n └── value:2\n" - ], - "queries": [ - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 1, - "type": "INT" - } - ], - "operator": "SUM", - "type": "DECIMAL" - } - ], - "keys": [ - { - "column": 0, - "type": "UUID" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "UUID" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - } - }, - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 1, - "type": "INT" - } - ], - "operator": "SUM", - "type": "DECIMAL" - } - ], - "keys": [ - { - "column": 0, - "type": "UUID" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "UUID" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 12 - ] - ], - "nullable": [ - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - true, - false, - true, - true - ], - "types": [ - "UUID", - "INT", - "INT", - "INT", - "INT", - "INT", - "INT", - "INT", - "INT", - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/140.json b/tests/cockroach/xform/140.json deleted file mode 100644 index e8b3b65..0000000 --- a/tests/cockroach/xform/140.json +++ /dev/null @@ -1,183 +0,0 @@ -{ - "help": [ - "limit\n ├── columns: x:11!null y:12 z:13\n ├── cardinality: [0 - 10]\n ├── key: (11-13)\n ├── union\n │ ├── columns: x:11!null y:12 z:13\n │ ├── left columns: t.x:1 t.y:2 t.z:3\n │ ├── right columns: t.x:6 t.z:8 t.y:7\n │ ├── key: (11-13)\n │ ├── limit hint: 10.00\n │ ├── project\n │ │ ├── columns: t.x:1!null t.y:2 t.z:3\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2,3)\n │ │ ├── limit hint: 10.00\n │ │ └── scan t\n │ │ ├── columns: t.x:1!null t.y:2 t.z:3 crdb_internal_mvcc_timestamp:4 tableoid:5\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2-5)\n │ │ └── limit hint: 10.00\n │ └── project\n │ ├── columns: t.x:6!null t.y:7 t.z:8\n │ ├── key: (6)\n │ ├── fd: (6)--\u003e(7,8)\n │ ├── limit hint: 10.00\n │ └── scan t\n │ ├── columns: t.x:6!null t.y:7 t.z:8 crdb_internal_mvcc_timestamp:9 tableoid:10\n │ ├── key: (6)\n │ ├── fd: (6)--\u003e(7-10)\n │ └── limit hint: 10.00\n └── 10\n", - "limit\n ├── columns: x:11!null y:12 z:13\n ├── cardinality: [0 - 10]\n ├── key: (11-13)\n ├── union\n │ ├── columns: x:11!null y:12 z:13\n │ ├── left columns: t.x:1 t.y:2 t.z:3\n │ ├── right columns: t.x:6 t.z:8 t.y:7\n │ ├── internal-ordering: +11,+12,+13\n │ ├── key: (11-13)\n │ ├── limit hint: 10.00\n │ ├── scan t\n │ │ ├── columns: t.x:1!null t.y:2 t.z:3\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2,3)\n │ │ ├── ordering: +1\n │ │ └── limit hint: 10.00\n │ └── scan t\n │ ├── columns: t.x:6!null t.y:7 t.z:8\n │ ├── key: (6)\n │ ├── fd: (6)--\u003e(7,8)\n │ ├── ordering: +6\n │ └── limit hint: 10.00\n └── 10\n" - ], - "queries": [ - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "distinct": { - "union": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - ] - } - } - } - }, - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "distinct": { - "union": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/141.json b/tests/cockroach/xform/141.json deleted file mode 100644 index 70da373..0000000 --- a/tests/cockroach/xform/141.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "help": [ - "limit\n ├── columns: x:11!null y:12 z:13\n ├── cardinality: [0 - 10]\n ├── union-all\n │ ├── columns: x:11!null y:12 z:13\n │ ├── left columns: t.x:1 t.y:2 t.z:3\n │ ├── right columns: t.x:6 t.y:7 t.z:8\n │ ├── limit hint: 10.00\n │ ├── project\n │ │ ├── columns: t.x:1!null t.y:2 t.z:3\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2,3)\n │ │ ├── limit hint: 10.00\n │ │ └── scan t\n │ │ ├── columns: t.x:1!null t.y:2 t.z:3 crdb_internal_mvcc_timestamp:4 tableoid:5\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2-5)\n │ │ └── limit hint: 10.00\n │ └── project\n │ ├── columns: t.x:6!null t.y:7 t.z:8\n │ ├── key: (6)\n │ ├── fd: (6)--\u003e(7,8)\n │ ├── limit hint: 10.00\n │ └── scan t\n │ ├── columns: t.x:6!null t.y:7 t.z:8 crdb_internal_mvcc_timestamp:9 tableoid:10\n │ ├── key: (6)\n │ ├── fd: (6)--\u003e(7-10)\n │ └── limit hint: 10.00\n └── 10\n", - "limit\n ├── columns: x:11!null y:12 z:13\n ├── cardinality: [0 - 10]\n ├── union-all\n │ ├── columns: x:11!null y:12 z:13\n │ ├── left columns: t.x:1 t.y:2 t.z:3\n │ ├── right columns: t.x:6 t.y:7 t.z:8\n │ ├── limit hint: 10.00\n │ ├── scan t\n │ │ ├── columns: t.x:1!null t.y:2 t.z:3\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2,3)\n │ │ └── limit hint: 10.00\n │ └── scan t\n │ ├── columns: t.x:6!null t.y:7 t.z:8\n │ ├── key: (6)\n │ ├── fd: (6)--\u003e(7,8)\n │ └── limit hint: 10.00\n └── 10\n" - ], - "queries": [ - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "union": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - ] - } - } - }, - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "union": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - ] - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/142.json b/tests/cockroach/xform/142.json deleted file mode 100644 index b4374e0..0000000 --- a/tests/cockroach/xform/142.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "help": [ - "limit\n ├── columns: z:3\n ├── cardinality: [0 - 10]\n ├── key: (3)\n ├── intersect\n │ ├── columns: z:3\n │ ├── left columns: z:3\n │ ├── right columns: y:7\n │ ├── key: (3)\n │ ├── limit hint: 10.00\n │ ├── project\n │ │ ├── columns: z:3\n │ │ ├── limit hint: 10.00\n │ │ └── scan t\n │ │ ├── columns: x:1!null y:2 z:3 crdb_internal_mvcc_timestamp:4 tableoid:5\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2-5)\n │ │ └── limit hint: 10.00\n │ └── project\n │ ├── columns: y:7\n │ ├── limit hint: 10.00\n │ └── scan t\n │ ├── columns: x:6!null y:7 z:8 crdb_internal_mvcc_timestamp:9 tableoid:10\n │ ├── key: (6)\n │ ├── fd: (6)--\u003e(7-10)\n │ └── limit hint: 10.00\n └── 10\n", - "limit\n ├── columns: z:3\n ├── cardinality: [0 - 10]\n ├── key: (3)\n ├── intersect\n │ ├── columns: z:3\n │ ├── left columns: z:3\n │ ├── right columns: y:7\n │ ├── key: (3)\n │ ├── limit hint: 10.00\n │ ├── scan t\n │ │ ├── columns: z:3\n │ │ └── limit hint: 10.00\n │ └── scan t@y_idx\n │ ├── columns: y:7\n │ └── limit hint: 10.00\n └── 10\n" - ], - "queries": [ - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "intersect": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 2, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - } - ] - } - } - }, - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "intersect": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 2, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - } - ] - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/144.json b/tests/cockroach/xform/144.json deleted file mode 100644 index 4294394..0000000 --- a/tests/cockroach/xform/144.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "help": [ - "limit\n ├── columns: z:3\n ├── cardinality: [0 - 10]\n ├── key: (3)\n ├── except\n │ ├── columns: z:3\n │ ├── left columns: z:3\n │ ├── right columns: y:7\n │ ├── key: (3)\n │ ├── limit hint: 10.00\n │ ├── project\n │ │ ├── columns: z:3\n │ │ ├── limit hint: 10.00\n │ │ └── scan t\n │ │ ├── columns: x:1!null y:2 z:3 crdb_internal_mvcc_timestamp:4 tableoid:5\n │ │ ├── key: (1)\n │ │ ├── fd: (1)--\u003e(2-5)\n │ │ └── limit hint: 10.00\n │ └── project\n │ ├── columns: y:7\n │ ├── limit hint: 10.00\n │ └── scan t\n │ ├── columns: x:6!null y:7 z:8 crdb_internal_mvcc_timestamp:9 tableoid:10\n │ ├── key: (6)\n │ ├── fd: (6)--\u003e(7-10)\n │ └── limit hint: 10.00\n └── 10\n", - "limit\n ├── columns: z:3\n ├── cardinality: [0 - 10]\n ├── key: (3)\n ├── except\n │ ├── columns: z:3\n │ ├── left columns: z:3\n │ ├── right columns: y:7\n │ ├── key: (3)\n │ ├── limit hint: 10.00\n │ ├── scan t\n │ │ ├── columns: z:3\n │ │ └── limit hint: 10.00\n │ └── scan t@y_idx\n │ ├── columns: y:7\n │ └── limit hint: 10.00\n └── 10\n" - ], - "queries": [ - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "except": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 2, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - } - ] - } - } - }, - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "except": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 2, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - } - ] - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/149.json b/tests/cockroach/xform/149.json deleted file mode 100644 index 76cc19d..0000000 --- a/tests/cockroach/xform/149.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "help": [ - "limit\n ├── columns: y:2 count:6!null\n ├── cardinality: [0 - 1]\n ├── key: ()\n ├── fd: ()--\u003e(2,6)\n ├── group-by (hash)\n │ ├── columns: y:2 count_rows:6!null\n │ ├── grouping columns: y:2\n │ ├── key: (2)\n │ ├── fd: (2)--\u003e(6)\n │ ├── limit hint: 1.00\n │ ├── project\n │ │ ├── columns: y:2\n │ │ └── scan t\n │ │ ├── columns: x:1!null y:2 z:3 crdb_internal_mvcc_timestamp:4 tableoid:5\n │ │ ├── key: (1)\n │ │ └── fd: (1)--\u003e(2-5)\n │ └── aggregations\n │ └── count-rows [as=count_rows:6]\n └── 1\n", - "limit\n ├── columns: y:2 count:6!null\n ├── cardinality: [0 - 1]\n ├── key: ()\n ├── fd: ()--\u003e(2,6)\n ├── group-by (streaming)\n │ ├── columns: y:2 count_rows:6!null\n │ ├── grouping columns: y:2\n │ ├── internal-ordering: +2\n │ ├── key: (2)\n │ ├── fd: (2)--\u003e(6)\n │ ├── limit hint: 1.00\n │ ├── scan t@y_idx\n │ │ ├── columns: y:2\n │ │ ├── ordering: +2\n │ │ └── limit hint: 10.00\n │ └── aggregations\n │ └── count-rows [as=count_rows:6]\n └── 1\n" - ], - "queries": [ - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "1", - "type": "INT" - }, - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - } - } - } - } - }, - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "1", - "type": "INT" - }, - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - } - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/151.json b/tests/cockroach/xform/151.json deleted file mode 100644 index da41fc6..0000000 --- a/tests/cockroach/xform/151.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "help": [ - "limit\n ├── columns: z:3 count:6!null\n ├── cardinality: [0 - 1]\n ├── key: ()\n ├── fd: ()--\u003e(3,6)\n ├── group-by (hash)\n │ ├── columns: z:3 count_rows:6!null\n │ ├── grouping columns: z:3\n │ ├── key: (3)\n │ ├── fd: (3)--\u003e(6)\n │ ├── limit hint: 1.00\n │ ├── project\n │ │ ├── columns: z:3\n │ │ └── scan t\n │ │ ├── columns: x:1!null y:2 z:3 crdb_internal_mvcc_timestamp:4 tableoid:5\n │ │ ├── key: (1)\n │ │ └── fd: (1)--\u003e(2-5)\n │ └── aggregations\n │ └── count-rows [as=count_rows:6]\n └── 1\n", - "limit\n ├── columns: z:3 count:6!null\n ├── cardinality: [0 - 1]\n ├── key: ()\n ├── fd: ()--\u003e(3,6)\n ├── group-by (hash)\n │ ├── columns: z:3 count_rows:6!null\n │ ├── grouping columns: z:3\n │ ├── key: (3)\n │ ├── fd: (3)--\u003e(6)\n │ ├── limit hint: 1.00\n │ ├── scan t\n │ │ └── columns: z:3\n │ └── aggregations\n │ └── count-rows [as=count_rows:6]\n └── 1\n" - ], - "queries": [ - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "1", - "type": "INT" - }, - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - } - }, - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "1", - "type": "INT" - }, - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/161.json b/tests/cockroach/xform/161.json deleted file mode 100644 index 86ff6da..0000000 --- a/tests/cockroach/xform/161.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "help": [ - "project\n ├── columns: x:1!null y:2!null z:3 s:4!null\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(3,4)\n ├── ordering: +1,-2\n └── scan a\n ├── columns: x:1!null y:2!null z:3 s:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(3-6)\n └── ordering: +1,-2\n", - "scan a\n ├── columns: x:1!null y:2!null z:3 s:4!null\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(3,4)\n └── ordering: +1,-2\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "FLOAT" - }, - { - "column": 2, - "type": "DECIMAL" - }, - { - "column": 3, - "type": "STRING" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "FLOAT" - }, - { - "column": 2, - "type": "DECIMAL" - }, - { - "column": 3, - "type": "STRING" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0, - 1 - ] - ], - "nullable": [ - false, - false, - true, - false, - true, - true - ], - "types": [ - "INT", - "FLOAT", - "DECIMAL", - "STRING", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/162.json b/tests/cockroach/xform/162.json deleted file mode 100644 index 7c49b2f..0000000 --- a/tests/cockroach/xform/162.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "help": [ - "project\n ├── columns: x:1!null y:2!null z:3 s:4!null\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(3,4)\n ├── ordering: +1\n └── scan a\n ├── columns: x:1!null y:2!null z:3 s:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(3-6)\n └── ordering: +1\n", - "scan a\n ├── columns: x:1!null y:2!null z:3 s:4!null\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(3,4)\n └── ordering: +1\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "FLOAT" - }, - { - "column": 2, - "type": "DECIMAL" - }, - { - "column": 3, - "type": "STRING" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "FLOAT" - }, - { - "column": 2, - "type": "DECIMAL" - }, - { - "column": 3, - "type": "STRING" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0, - 1 - ] - ], - "nullable": [ - false, - false, - true, - false, - true, - true - ], - "types": [ - "INT", - "FLOAT", - "DECIMAL", - "STRING", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/163.json b/tests/cockroach/xform/163.json deleted file mode 100644 index 70bc0ef..0000000 --- a/tests/cockroach/xform/163.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "help": [ - "project\n ├── columns: x:1!null y:2!null z:3 s:4!null\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(3,4)\n ├── ordering: +1,-2,+3\n └── scan a\n ├── columns: x:1!null y:2!null z:3 s:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(3-6)\n └── ordering: +1,-2\n", - "scan a\n ├── columns: x:1!null y:2!null z:3 s:4!null\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(3,4)\n └── ordering: +1,-2\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "FLOAT" - }, - { - "column": 2, - "type": "DECIMAL" - }, - { - "column": 3, - "type": "STRING" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "FLOAT" - }, - { - "column": 2, - "type": "DECIMAL" - }, - { - "column": 3, - "type": "STRING" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0, - 1 - ] - ], - "nullable": [ - false, - false, - true, - false, - true, - true - ], - "types": [ - "INT", - "FLOAT", - "DECIMAL", - "STRING", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/164.json b/tests/cockroach/xform/164.json deleted file mode 100644 index 3a0fc8b..0000000 --- a/tests/cockroach/xform/164.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "help": [ - "sort\n ├── columns: x:1!null y:2!null z:3 s:4!null\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(3,4)\n ├── ordering: -2\n └── project\n ├── columns: x:1!null y:2!null z:3 s:4!null\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(3,4)\n └── scan a\n ├── columns: x:1!null y:2!null z:3 s:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── key: (1,2)\n └── fd: (1,2)--\u003e(3-6)\n", - "sort\n ├── columns: x:1!null y:2!null z:3 s:4!null\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(3,4)\n ├── ordering: -2\n └── scan a\n ├── columns: x:1!null y:2!null z:3 s:4!null\n ├── key: (1,2)\n └── fd: (1,2)--\u003e(3,4)\n" - ], - "queries": [ - { - "sort": { - "collation": [ - [ - 1, - "FLOAT", - "DESCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "FLOAT" - }, - { - "column": 2, - "type": "DECIMAL" - }, - { - "column": 3, - "type": "STRING" - } - ] - } - } - } - }, - { - "sort": { - "collation": [ - [ - 1, - "FLOAT", - "DESCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "FLOAT" - }, - { - "column": 2, - "type": "DECIMAL" - }, - { - "column": 3, - "type": "STRING" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0, - 1 - ] - ], - "nullable": [ - false, - false, - true, - false, - true, - true - ], - "types": [ - "INT", - "FLOAT", - "DECIMAL", - "STRING", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/165.json b/tests/cockroach/xform/165.json deleted file mode 100644 index 600bd75..0000000 --- a/tests/cockroach/xform/165.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "help": [ - "sort\n ├── columns: y:2!null\n ├── ordering: -2\n └── project\n ├── columns: y:2!null\n └── scan a\n ├── columns: x:1!null y:2!null z:3 s:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── key: (1,2)\n └── fd: (1,2)--\u003e(3-6)\n", - "sort\n ├── columns: y:2!null\n ├── ordering: -2\n └── scan a\n └── columns: y:2!null\n" - ], - "queries": [ - { - "sort": { - "collation": [ - [ - 0, - "FLOAT", - "DESCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "FLOAT" - } - ] - } - } - } - }, - { - "sort": { - "collation": [ - [ - 0, - "FLOAT", - "DESCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "FLOAT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0, - 1 - ] - ], - "nullable": [ - false, - false, - true, - false, - true, - true - ], - "types": [ - "INT", - "FLOAT", - "DECIMAL", - "STRING", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/179.json b/tests/cockroach/xform/179.json deleted file mode 100644 index d507452..0000000 --- a/tests/cockroach/xform/179.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "help": [ - "group-by (streaming)\n ├── columns: a:1!null min:6!null\n ├── grouping columns: a:1!null\n ├── key: (1)\n ├── fd: (1)--\u003e(6)\n ├── ordering: +1\n ├── project\n │ ├── columns: a:1!null b:2!null\n │ ├── ordering: +1\n │ └── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null crdb_internal_mvcc_timestamp:4 tableoid:5\n │ ├── key: (1-3)\n │ ├── fd: (1-3)--\u003e(4,5)\n │ └── ordering: +1\n └── aggregations\n └── min [as=min:6, outer=(2)]\n └── b:2\n", - "group-by (streaming)\n ├── columns: a:1!null min:6!null\n ├── grouping columns: a:1!null\n ├── key: (1)\n ├── fd: (1)--\u003e(6)\n ├── ordering: +1\n ├── scan abc\n │ ├── columns: a:1!null b:2!null\n │ └── ordering: +1\n └── aggregations\n └── min [as=min:6, outer=(2)]\n └── b:2\n" - ], - "queries": [ - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 1, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - } - }, - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 1, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0, - 1, - 2 - ] - ], - "nullable": [ - false, - false, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/180.json b/tests/cockroach/xform/180.json deleted file mode 100644 index 720efdb..0000000 --- a/tests/cockroach/xform/180.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "help": [ - "group-by (partial streaming)\n ├── columns: a:1!null b:2!null min:6!null\n ├── grouping columns: a:1!null b:2!null\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(6)\n ├── ordering: +1\n ├── project\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ ├── ordering: +1\n │ └── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null crdb_internal_mvcc_timestamp:4 tableoid:5\n │ ├── key: (1-3)\n │ ├── fd: (1-3)--\u003e(4,5)\n │ └── ordering: +1\n └── aggregations\n └── min [as=min:6, outer=(3)]\n └── c:3\n", - "group-by (streaming)\n ├── columns: a:1!null b:2!null min:6!null\n ├── grouping columns: a:1!null b:2!null\n ├── internal-ordering: +1,+2\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(6)\n ├── ordering: +1\n ├── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ └── ordering: +1,+2\n └── aggregations\n └── min [as=min:6, outer=(3)]\n └── c:3\n" - ], - "queries": [ - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 2, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - }, - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 2, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0, - 1, - 2 - ] - ], - "nullable": [ - false, - false, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/181.json b/tests/cockroach/xform/181.json deleted file mode 100644 index d552125..0000000 --- a/tests/cockroach/xform/181.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "help": [ - "group-by (streaming)\n ├── columns: a:1!null b:2!null min:6!null\n ├── grouping columns: a:1!null b:2!null\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(6)\n ├── ordering: +1,+2\n ├── project\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ ├── ordering: +1,+2\n │ └── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null crdb_internal_mvcc_timestamp:4 tableoid:5\n │ ├── key: (1-3)\n │ ├── fd: (1-3)--\u003e(4,5)\n │ └── ordering: +1,+2\n └── aggregations\n └── min [as=min:6, outer=(3)]\n └── c:3\n", - "group-by (streaming)\n ├── columns: a:1!null b:2!null min:6!null\n ├── grouping columns: a:1!null b:2!null\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(6)\n ├── ordering: +1,+2\n ├── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ └── ordering: +1,+2\n └── aggregations\n └── min [as=min:6, outer=(3)]\n └── c:3\n" - ], - "queries": [ - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 2, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - }, - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 2, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0, - 1, - 2 - ] - ], - "nullable": [ - false, - false, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/182.json b/tests/cockroach/xform/182.json deleted file mode 100644 index d552125..0000000 --- a/tests/cockroach/xform/182.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "help": [ - "group-by (streaming)\n ├── columns: a:1!null b:2!null min:6!null\n ├── grouping columns: a:1!null b:2!null\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(6)\n ├── ordering: +1,+2\n ├── project\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ ├── ordering: +1,+2\n │ └── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null crdb_internal_mvcc_timestamp:4 tableoid:5\n │ ├── key: (1-3)\n │ ├── fd: (1-3)--\u003e(4,5)\n │ └── ordering: +1,+2\n └── aggregations\n └── min [as=min:6, outer=(3)]\n └── c:3\n", - "group-by (streaming)\n ├── columns: a:1!null b:2!null min:6!null\n ├── grouping columns: a:1!null b:2!null\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(6)\n ├── ordering: +1,+2\n ├── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ └── ordering: +1,+2\n └── aggregations\n └── min [as=min:6, outer=(3)]\n └── c:3\n" - ], - "queries": [ - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 2, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - }, - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 2, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0, - 1, - 2 - ] - ], - "nullable": [ - false, - false, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/183.json b/tests/cockroach/xform/183.json deleted file mode 100644 index bddc058..0000000 --- a/tests/cockroach/xform/183.json +++ /dev/null @@ -1,163 +0,0 @@ -{ - "help": [ - "sort (segmented)\n ├── columns: a:1!null b:2!null m:6!null\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(6)\n ├── ordering: +1,+6\n └── group-by (partial streaming)\n ├── columns: a:1!null b:2!null min:6!null\n ├── grouping columns: a:1!null b:2!null\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(6)\n ├── ordering: +1\n ├── project\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ ├── ordering: +1\n │ └── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null crdb_internal_mvcc_timestamp:4 tableoid:5\n │ ├── key: (1-3)\n │ ├── fd: (1-3)--\u003e(4,5)\n │ └── ordering: +1\n └── aggregations\n └── min [as=min:6, outer=(3)]\n └── c:3\n", - "sort (segmented)\n ├── columns: a:1!null b:2!null m:6!null\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(6)\n ├── ordering: +1,+6\n └── group-by (streaming)\n ├── columns: a:1!null b:2!null min:6!null\n ├── grouping columns: a:1!null b:2!null\n ├── internal-ordering: +1,+2\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(6)\n ├── ordering: +1\n ├── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ └── ordering: +1,+2\n └── aggregations\n └── min [as=min:6, outer=(3)]\n └── c:3\n" - ], - "queries": [ - { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ], - [ - 2, - "INT", - "ASCENDING" - ] - ], - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 2, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - } - }, - { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ], - [ - 2, - "INT", - "ASCENDING" - ] - ], - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 2, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0, - 1, - 2 - ] - ], - "nullable": [ - false, - false, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/184.json b/tests/cockroach/xform/184.json deleted file mode 100644 index 11cbc85..0000000 --- a/tests/cockroach/xform/184.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "help": [ - "group-by (streaming)\n ├── columns: a:1!null b:2!null array_agg:6!null\n ├── grouping columns: a:1!null b:2!null\n ├── internal-ordering: +3 opt(1,2)\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(6)\n ├── ordering: +1,+2\n ├── project\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ ├── ordering: +1,+2,+3\n │ └── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null crdb_internal_mvcc_timestamp:4 tableoid:5\n │ ├── key: (1-3)\n │ ├── fd: (1-3)--\u003e(4,5)\n │ └── ordering: +1,+2,+3\n └── aggregations\n └── array-agg [as=array_agg:6, outer=(3)]\n └── c:3\n", - "group-by (streaming)\n ├── columns: a:1!null b:2!null array_agg:6!null\n ├── grouping columns: a:1!null b:2!null\n ├── internal-ordering: +3 opt(1,2)\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(6)\n ├── ordering: +1,+2\n ├── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ └── ordering: +1,+2,+3\n └── aggregations\n └── array-agg [as=array_agg:6, outer=(3)]\n └── c:3\n" - ], - "queries": [ - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [ - { - "column": 2, - "type": "INT" - } - ], - "operator": "ARRAY AGG", - "type": "INT[]" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - }, - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [ - { - "column": 2, - "type": "INT" - } - ], - "operator": "ARRAY AGG", - "type": "INT[]" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0, - 1, - 2 - ] - ], - "nullable": [ - false, - false, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/185.json b/tests/cockroach/xform/185.json deleted file mode 100644 index 11cbc85..0000000 --- a/tests/cockroach/xform/185.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "help": [ - "group-by (streaming)\n ├── columns: a:1!null b:2!null array_agg:6!null\n ├── grouping columns: a:1!null b:2!null\n ├── internal-ordering: +3 opt(1,2)\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(6)\n ├── ordering: +1,+2\n ├── project\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ ├── ordering: +1,+2,+3\n │ └── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null crdb_internal_mvcc_timestamp:4 tableoid:5\n │ ├── key: (1-3)\n │ ├── fd: (1-3)--\u003e(4,5)\n │ └── ordering: +1,+2,+3\n └── aggregations\n └── array-agg [as=array_agg:6, outer=(3)]\n └── c:3\n", - "group-by (streaming)\n ├── columns: a:1!null b:2!null array_agg:6!null\n ├── grouping columns: a:1!null b:2!null\n ├── internal-ordering: +3 opt(1,2)\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(6)\n ├── ordering: +1,+2\n ├── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ └── ordering: +1,+2,+3\n └── aggregations\n └── array-agg [as=array_agg:6, outer=(3)]\n └── c:3\n" - ], - "queries": [ - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [ - { - "column": 2, - "type": "INT" - } - ], - "operator": "ARRAY AGG", - "type": "INT[]" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - }, - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [ - { - "column": 2, - "type": "INT" - } - ], - "operator": "ARRAY AGG", - "type": "INT[]" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0, - 1, - 2 - ] - ], - "nullable": [ - false, - false, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/186.json b/tests/cockroach/xform/186.json deleted file mode 100644 index 11cbc85..0000000 --- a/tests/cockroach/xform/186.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "help": [ - "group-by (streaming)\n ├── columns: a:1!null b:2!null array_agg:6!null\n ├── grouping columns: a:1!null b:2!null\n ├── internal-ordering: +3 opt(1,2)\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(6)\n ├── ordering: +1,+2\n ├── project\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ ├── ordering: +1,+2,+3\n │ └── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null crdb_internal_mvcc_timestamp:4 tableoid:5\n │ ├── key: (1-3)\n │ ├── fd: (1-3)--\u003e(4,5)\n │ └── ordering: +1,+2,+3\n └── aggregations\n └── array-agg [as=array_agg:6, outer=(3)]\n └── c:3\n", - "group-by (streaming)\n ├── columns: a:1!null b:2!null array_agg:6!null\n ├── grouping columns: a:1!null b:2!null\n ├── internal-ordering: +3 opt(1,2)\n ├── key: (1,2)\n ├── fd: (1,2)--\u003e(6)\n ├── ordering: +1,+2\n ├── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ └── ordering: +1,+2,+3\n └── aggregations\n └── array-agg [as=array_agg:6, outer=(3)]\n └── c:3\n" - ], - "queries": [ - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [ - { - "column": 2, - "type": "INT" - } - ], - "operator": "ARRAY AGG", - "type": "INT[]" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - }, - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [ - { - "column": 2, - "type": "INT" - } - ], - "operator": "ARRAY AGG", - "type": "INT[]" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0, - 1, - 2 - ] - ], - "nullable": [ - false, - false, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/188.json b/tests/cockroach/xform/188.json deleted file mode 100644 index 8637b60..0000000 --- a/tests/cockroach/xform/188.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "help": [ - "project\n ├── columns: sum:8\n └── group-by (hash)\n ├── columns: a:1 b:2 c:3 sum:8\n ├── grouping columns: a:1 b:2 c:3\n ├── key: (1-3)\n ├── fd: (1-3)--\u003e(8)\n ├── project\n │ ├── columns: a:1 b:2 c:3 d:4\n │ └── scan abcd\n │ ├── columns: a:1 b:2 c:3 d:4 rowid:5!null crdb_internal_mvcc_timestamp:6 tableoid:7\n │ ├── key: (5)\n │ └── fd: (5)--\u003e(1-4,6,7)\n └── aggregations\n └── sum [as=sum:8, outer=(4)]\n └── d:4\n", - "project\n ├── columns: sum:8\n └── group-by (hash)\n ├── columns: a:1 b:2 c:3 sum:8\n ├── grouping columns: a:1 b:2 c:3\n ├── key: (1-3)\n ├── fd: (1-3)--\u003e(8)\n ├── scan abcd\n │ └── columns: a:1 b:2 c:3 d:4\n └── aggregations\n └── sum [as=sum:8, outer=(4)]\n └── d:4\n" - ], - "queries": [ - { - "project": { - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 3, - "type": "INT" - } - ], - "operator": "SUM", - "type": "DECIMAL" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - }, - { - "column": 3, - "type": "INT" - } - ] - } - } - } - }, - "target": [ - { - "column": 3, - "type": "DECIMAL" - } - ] - } - }, - { - "project": { - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 3, - "type": "INT" - } - ], - "operator": "SUM", - "type": "DECIMAL" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - }, - { - "column": 3, - "type": "INT" - } - ] - } - } - } - }, - "target": [ - { - "column": 3, - "type": "DECIMAL" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 4 - ] - ], - "nullable": [ - true, - true, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/189.json b/tests/cockroach/xform/189.json deleted file mode 100644 index 11e71d0..0000000 --- a/tests/cockroach/xform/189.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "help": [ - "project\n ├── columns: sum:8\n └── group-by (hash)\n ├── columns: b:2 c:3 d:4 sum:8\n ├── grouping columns: b:2 c:3 d:4\n ├── key: (2-4)\n ├── fd: (2-4)--\u003e(8)\n ├── project\n │ ├── columns: a:1 b:2 c:3 d:4\n │ └── scan abcd\n │ ├── columns: a:1 b:2 c:3 d:4 rowid:5!null crdb_internal_mvcc_timestamp:6 tableoid:7\n │ ├── key: (5)\n │ └── fd: (5)--\u003e(1-4,6,7)\n └── aggregations\n └── sum [as=sum:8, outer=(1)]\n └── a:1\n", - "project\n ├── columns: sum:8\n └── group-by (hash)\n ├── columns: b:2 c:3 d:4 sum:8\n ├── grouping columns: b:2 c:3 d:4\n ├── key: (2-4)\n ├── fd: (2-4)--\u003e(8)\n ├── scan abcd\n │ └── columns: a:1 b:2 c:3 d:4\n └── aggregations\n └── sum [as=sum:8, outer=(1)]\n └── a:1\n" - ], - "queries": [ - { - "project": { - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 0, - "type": "INT" - } - ], - "operator": "SUM", - "type": "DECIMAL" - } - ], - "keys": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - }, - { - "column": 3, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - }, - { - "column": 3, - "type": "INT" - } - ] - } - } - } - }, - "target": [ - { - "column": 3, - "type": "DECIMAL" - } - ] - } - }, - { - "project": { - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 0, - "type": "INT" - } - ], - "operator": "SUM", - "type": "DECIMAL" - } - ], - "keys": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - }, - { - "column": 3, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - }, - { - "column": 3, - "type": "INT" - } - ] - } - } - } - }, - "target": [ - { - "column": 3, - "type": "DECIMAL" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 4 - ] - ], - "nullable": [ - true, - true, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/2.json b/tests/cockroach/xform/2.json deleted file mode 100644 index c3eaaf7..0000000 --- a/tests/cockroach/xform/2.json +++ /dev/null @@ -1,113 +0,0 @@ -{ - "help": [ - "group-by (hash)\n ├── columns: a:2 b:3 count:7!null\n ├── grouping columns: a:2 b:3\n ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n ├── cost: 1189.21625\n ├── key: (2,3)\n ├── fd: (2,3)--\u003e(7)\n ├── project\n │ ├── columns: a:2 b:3\n │ ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n │ ├── cost: 1139.04\n │ └── scan b\n │ ├── columns: k:1!null a:2 b:3 c:4 crdb_internal_mvcc_timestamp:5 tableoid:6\n │ ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n │ ├── cost: 1129.02\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2-6)\n └── aggregations\n └── count-rows [as=count_rows:7]\n", - "group-by (streaming)\n ├── columns: a:2 b:3 count:7!null\n ├── grouping columns: a:2 b:3\n ├── internal-ordering: +2,+3\n ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n ├── cost: 1118.55\n ├── key: (2,3)\n ├── fd: (2,3)--\u003e(7)\n ├── scan b@b_a_b_idx\n │ ├── columns: a:2 b:3\n │ ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n │ ├── cost: 1078.52\n │ └── ordering: +2,+3\n └── aggregations\n └── count-rows [as=count_rows:7]\n" - ], - "queries": [ - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - }, - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/204.json b/tests/cockroach/xform/204.json deleted file mode 100644 index fd77066..0000000 --- a/tests/cockroach/xform/204.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "help": [ - "offset\n ├── columns: a:1!null b:2!null c:3!null\n ├── internal-ordering: +1,+2\n ├── key: (1-3)\n ├── ordering: +1,+2\n ├── project\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ ├── ordering: +1,+2\n │ └── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null crdb_internal_mvcc_timestamp:4 tableoid:5\n │ ├── key: (1-3)\n │ ├── fd: (1-3)--\u003e(4,5)\n │ └── ordering: +1,+2\n └── 10\n", - "offset\n ├── columns: a:1!null b:2!null c:3!null\n ├── internal-ordering: +1,+2\n ├── key: (1-3)\n ├── ordering: +1,+2\n ├── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ └── ordering: +1,+2\n └── 10\n" - ], - "queries": [ - { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ], - [ - 1, - "INT", - "ASCENDING" - ] - ], - "offset": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - }, - { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ], - [ - 1, - "INT", - "ASCENDING" - ] - ], - "offset": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0, - 1, - 2 - ] - ], - "nullable": [ - false, - false, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/207.json b/tests/cockroach/xform/207.json deleted file mode 100644 index bba0a7d..0000000 --- a/tests/cockroach/xform/207.json +++ /dev/null @@ -1,139 +0,0 @@ -{ - "help": [ - "sort\n ├── columns: a:1!null b:2!null c:3!null\n ├── key: (1-3)\n ├── ordering: +2\n └── offset\n ├── columns: a:1!null b:2!null c:3!null\n ├── internal-ordering: +1,+2\n ├── key: (1-3)\n ├── project\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ ├── ordering: +1,+2\n │ └── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null crdb_internal_mvcc_timestamp:4 tableoid:5\n │ ├── key: (1-3)\n │ ├── fd: (1-3)--\u003e(4,5)\n │ └── ordering: +1,+2\n └── 10\n", - "sort\n ├── columns: a:1!null b:2!null c:3!null\n ├── key: (1-3)\n ├── ordering: +2\n └── offset\n ├── columns: a:1!null b:2!null c:3!null\n ├── internal-ordering: +1,+2\n ├── key: (1-3)\n ├── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ └── ordering: +1,+2\n └── 10\n" - ], - "queries": [ - { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ] - ], - "source": { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ], - [ - 1, - "INT", - "ASCENDING" - ] - ], - "offset": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - } - }, - { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ] - ], - "source": { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ], - [ - 1, - "INT", - "ASCENDING" - ] - ], - "offset": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0, - 1, - 2 - ] - ], - "nullable": [ - false, - false, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/210.json b/tests/cockroach/xform/210.json deleted file mode 100644 index e8888ac..0000000 --- a/tests/cockroach/xform/210.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "help": [ - "offset\n ├── columns: a:1!null b:2!null c:3!null\n ├── internal-ordering: +1,+2\n ├── key: (1-3)\n ├── ordering: +1\n ├── project\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ ├── ordering: +1,+2\n │ └── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null crdb_internal_mvcc_timestamp:4 tableoid:5\n │ ├── key: (1-3)\n │ ├── fd: (1-3)--\u003e(4,5)\n │ └── ordering: +1,+2\n └── 10\n", - "offset\n ├── columns: a:1!null b:2!null c:3!null\n ├── internal-ordering: +1,+2\n ├── key: (1-3)\n ├── ordering: +1\n ├── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ └── ordering: +1,+2\n └── 10\n" - ], - "queries": [ - { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ], - [ - 1, - "INT", - "ASCENDING" - ] - ], - "offset": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - }, - { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ], - [ - 1, - "INT", - "ASCENDING" - ] - ], - "offset": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0, - 1, - 2 - ] - ], - "nullable": [ - false, - false, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/213.json b/tests/cockroach/xform/213.json deleted file mode 100644 index bf63dc9..0000000 --- a/tests/cockroach/xform/213.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "help": [ - "offset\n ├── columns: a:1!null b:2!null c:3!null\n ├── internal-ordering: +1,+2\n ├── key: (1-3)\n ├── ordering: +1,+2,+3\n ├── project\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ ├── ordering: +1,+2,+3\n │ └── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null crdb_internal_mvcc_timestamp:4 tableoid:5\n │ ├── key: (1-3)\n │ ├── fd: (1-3)--\u003e(4,5)\n │ └── ordering: +1,+2,+3\n └── 10\n", - "offset\n ├── columns: a:1!null b:2!null c:3!null\n ├── internal-ordering: +1,+2\n ├── key: (1-3)\n ├── ordering: +1,+2,+3\n ├── scan abc\n │ ├── columns: a:1!null b:2!null c:3!null\n │ ├── key: (1-3)\n │ └── ordering: +1,+2,+3\n └── 10\n" - ], - "queries": [ - { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ], - [ - 1, - "INT", - "ASCENDING" - ] - ], - "offset": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - }, - { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ], - [ - 1, - "INT", - "ASCENDING" - ] - ], - "offset": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0, - 1, - 2 - ] - ], - "nullable": [ - false, - false, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/270.json b/tests/cockroach/xform/270.json deleted file mode 100644 index ba6a85f..0000000 --- a/tests/cockroach/xform/270.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "help": [ - "project\n ├── columns: y:2 x:1!null y2:2\n ├── key: (1)\n ├── fd: (1)--\u003e(2)\n └── scan a\n ├── columns: x:1!null y:2 crdb_internal_mvcc_timestamp:3 tableoid:4\n ├── key: (1)\n └── fd: (1)--\u003e(2-4)\n", - "scan a\n ├── columns: y:2 x:1!null y2:2\n ├── key: (1)\n └── fd: (1)--\u003e(2)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/275.json b/tests/cockroach/xform/275.json deleted file mode 100644 index 0926ba3..0000000 --- a/tests/cockroach/xform/275.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "help": [ - "project\n ├── columns: a:1 b:2 c:3\n ├── lax-key: (1-3)\n ├── fd: (3)~~\u003e(1,2)\n ├── prune: (1-3)\n └── scan abc\n ├── columns: a:1 b:2 c:3 rowid:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── key: (4)\n ├── fd: (4)--\u003e(1-3,5,6), (3)~~\u003e(1,2,4-6)\n └── prune: (1-6)\n", - "scan abc\n ├── columns: a:1 b:2 c:3\n ├── lax-key: (1-3)\n ├── fd: (3)~~\u003e(1,2)\n └── prune: (1-3)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 3 - ] - ], - "nullable": [ - true, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/276.json b/tests/cockroach/xform/276.json deleted file mode 100644 index c8cc3be..0000000 --- a/tests/cockroach/xform/276.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "help": [ - "project\n ├── columns: a:1 c:3\n ├── lax-key: (1,3)\n ├── fd: (3)~~\u003e(1)\n ├── prune: (1,3)\n └── scan abc\n ├── columns: a:1 b:2 c:3 rowid:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── key: (4)\n ├── fd: (4)--\u003e(1-3,5,6), (3)~~\u003e(1,2,4-6)\n └── prune: (1-6)\n", - "scan abc\n ├── columns: a:1 c:3\n ├── lax-key: (1,3)\n ├── fd: (3)~~\u003e(1)\n └── prune: (1,3)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 3 - ] - ], - "nullable": [ - true, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/277.json b/tests/cockroach/xform/277.json deleted file mode 100644 index 5faadc7..0000000 --- a/tests/cockroach/xform/277.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "help": [ - "project\n ├── columns: b:2 c:3\n ├── lax-key: (2,3)\n ├── fd: (3)~~\u003e(2)\n ├── prune: (2,3)\n └── scan abc\n ├── columns: a:1 b:2 c:3 rowid:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── key: (4)\n ├── fd: (4)--\u003e(1-3,5,6), (3)~~\u003e(1,2,4-6)\n └── prune: (1-6)\n", - "scan abc\n ├── columns: b:2 c:3\n ├── lax-key: (2,3)\n ├── fd: (3)~~\u003e(2)\n └── prune: (2,3)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 3 - ] - ], - "nullable": [ - true, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/278.json b/tests/cockroach/xform/278.json deleted file mode 100644 index 0d3ece2..0000000 --- a/tests/cockroach/xform/278.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "help": [ - "group-by (hash)\n ├── columns: min:7 a:1\n ├── grouping columns: a:1\n ├── key: (1)\n ├── fd: (1)--\u003e(7)\n ├── prune: (7)\n ├── project\n │ ├── columns: a:1 b:2\n │ ├── prune: (1,2)\n │ └── scan abc\n │ ├── columns: a:1 b:2 c:3 rowid:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n │ ├── key: (4)\n │ ├── fd: (4)--\u003e(1-3,5,6), (3)~~\u003e(1,2,4-6)\n │ └── prune: (1-6)\n └── aggregations\n └── min [as=min:7, outer=(2)]\n └── b:2\n", - "group-by (streaming)\n ├── columns: min:7 a:1\n ├── grouping columns: a:1\n ├── internal-ordering: +1\n ├── key: (1)\n ├── fd: (1)--\u003e(7)\n ├── prune: (7)\n ├── scan abc@abc_a_b_idx\n │ ├── columns: a:1 b:2\n │ ├── ordering: +1\n │ ├── prune: (1,2)\n │ └── interesting orderings: (+1,+2)\n └── aggregations\n └── min [as=min:7, outer=(2)]\n └── b:2\n" - ], - "queries": [ - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 1, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - } - }, - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 1, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 3 - ] - ], - "nullable": [ - true, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/279.json b/tests/cockroach/xform/279.json deleted file mode 100644 index 550b02b..0000000 --- a/tests/cockroach/xform/279.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "help": [ - "group-by (hash)\n ├── columns: min:7 c:3\n ├── grouping columns: c:3\n ├── key: (3)\n ├── fd: (3)--\u003e(7)\n ├── prune: (7)\n ├── project\n │ ├── columns: b:2 c:3\n │ ├── lax-key: (2,3)\n │ ├── fd: (3)~~\u003e(2)\n │ ├── prune: (2,3)\n │ └── scan abc\n │ ├── columns: a:1 b:2 c:3 rowid:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n │ ├── key: (4)\n │ ├── fd: (4)--\u003e(1-3,5,6), (3)~~\u003e(1,2,4-6)\n │ └── prune: (1-6)\n └── aggregations\n └── min [as=min:7, outer=(2)]\n └── b:2\n", - "group-by (hash)\n ├── columns: min:7 c:3\n ├── grouping columns: c:3\n ├── key: (3)\n ├── fd: (3)--\u003e(7)\n ├── prune: (7)\n ├── scan abc\n │ ├── columns: b:2 c:3\n │ ├── lax-key: (2,3)\n │ ├── fd: (3)~~\u003e(2)\n │ ├── prune: (2,3)\n │ └── interesting orderings: (+3)\n └── aggregations\n └── min [as=min:7, outer=(2)]\n └── b:2\n" - ], - "queries": [ - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 0, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - }, - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 0, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 3 - ] - ], - "nullable": [ - true, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/280.json b/tests/cockroach/xform/280.json deleted file mode 100644 index f4b8842..0000000 --- a/tests/cockroach/xform/280.json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "help": [ - "group-by (hash)\n ├── columns: array_agg:7 b:2 c:3\n ├── grouping columns: b:2 c:3\n ├── internal-ordering: +1 opt(2,3)\n ├── key: (2,3)\n ├── fd: (3)~~\u003e(2), (2,3)--\u003e(7)\n ├── prune: (7)\n ├── sort\n │ ├── columns: a:1 b:2 c:3\n │ ├── lax-key: (1-3)\n │ ├── fd: (3)~~\u003e(1,2)\n │ ├── ordering: +1 opt(2,3) [actual: +1]\n │ ├── prune: (1-3)\n │ ├── interesting orderings: (+1,+2) (+3)\n │ └── project\n │ ├── columns: a:1 b:2 c:3\n │ ├── lax-key: (1-3)\n │ ├── fd: (3)~~\u003e(1,2)\n │ ├── prune: (1-3)\n │ ├── interesting orderings: (+1,+2) (+3)\n │ └── scan abc\n │ ├── columns: a:1 b:2 c:3 rowid:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n │ ├── key: (4)\n │ ├── fd: (4)--\u003e(1-3,5,6), (3)~~\u003e(1,2,4-6)\n │ ├── prune: (1-6)\n │ └── interesting orderings: (+4) (+1,+2,+4) (+3,+4)\n └── aggregations\n └── array-agg [as=array_agg:7, outer=(1)]\n └── a:1\n", - "group-by (hash)\n ├── columns: array_agg:7 b:2 c:3\n ├── grouping columns: b:2 c:3\n ├── internal-ordering: +1 opt(2,3)\n ├── key: (2,3)\n ├── fd: (3)~~\u003e(2), (2,3)--\u003e(7)\n ├── prune: (7)\n ├── sort\n │ ├── columns: a:1 b:2 c:3\n │ ├── lax-key: (1-3)\n │ ├── fd: (3)~~\u003e(1,2)\n │ ├── ordering: +1 opt(2,3) [actual: +1]\n │ ├── prune: (1-3)\n │ ├── interesting orderings: (+1,+2) (+3)\n │ └── scan abc\n │ ├── columns: a:1 b:2 c:3\n │ ├── lax-key: (1-3)\n │ ├── fd: (3)~~\u003e(1,2)\n │ ├── prune: (1-3)\n │ └── interesting orderings: (+1,+2) (+3)\n └── aggregations\n └── array-agg [as=array_agg:7, outer=(1)]\n └── a:1\n" - ], - "queries": [ - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [ - { - "column": 0, - "type": "INT" - } - ], - "operator": "ARRAY AGG", - "type": "INT[]" - } - ], - "keys": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ], - "source": { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - } - }, - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [ - { - "column": 0, - "type": "INT" - } - ], - "operator": "ARRAY AGG", - "type": "INT[]" - } - ], - "keys": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ], - "source": { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 3 - ] - ], - "nullable": [ - true, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/285.json b/tests/cockroach/xform/285.json deleted file mode 100644 index 551691a..0000000 --- a/tests/cockroach/xform/285.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "help": [ - "offset\n ├── columns: a:1 b:2 c:3\n ├── internal-ordering: +1\n ├── lax-key: (1-3)\n ├── fd: (3)~~\u003e(1,2)\n ├── ordering: +1\n ├── prune: (2,3)\n ├── interesting orderings: (+1,+2)\n ├── sort\n │ ├── columns: a:1 b:2 c:3\n │ ├── lax-key: (1-3)\n │ ├── fd: (3)~~\u003e(1,2)\n │ ├── ordering: +1\n │ ├── prune: (1-3)\n │ ├── interesting orderings: (+1,+2) (+3)\n │ └── project\n │ ├── columns: a:1 b:2 c:3\n │ ├── lax-key: (1-3)\n │ ├── fd: (3)~~\u003e(1,2)\n │ ├── prune: (1-3)\n │ ├── interesting orderings: (+1,+2) (+3)\n │ └── scan abc\n │ ├── columns: a:1 b:2 c:3 rowid:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n │ ├── key: (4)\n │ ├── fd: (4)--\u003e(1-3,5,6), (3)~~\u003e(1,2,4-6)\n │ ├── prune: (1-6)\n │ └── interesting orderings: (+4) (+1,+2,+4) (+3,+4)\n └── 10\n", - "offset\n ├── columns: a:1 b:2 c:3\n ├── internal-ordering: +1\n ├── lax-key: (1-3)\n ├── fd: (3)~~\u003e(1,2)\n ├── ordering: +1\n ├── prune: (2,3)\n ├── interesting orderings: (+1,+2)\n ├── sort\n │ ├── columns: a:1 b:2 c:3\n │ ├── lax-key: (1-3)\n │ ├── fd: (3)~~\u003e(1,2)\n │ ├── ordering: +1\n │ ├── prune: (1-3)\n │ ├── interesting orderings: (+1,+2) (+3)\n │ └── scan abc\n │ ├── columns: a:1 b:2 c:3\n │ ├── lax-key: (1-3)\n │ ├── fd: (3)~~\u003e(1,2)\n │ ├── prune: (1-3)\n │ └── interesting orderings: (+1,+2) (+3)\n └── 10\n" - ], - "queries": [ - { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ] - ], - "offset": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - } - }, - { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ] - ], - "offset": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 3 - ] - ], - "nullable": [ - true, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/3.json b/tests/cockroach/xform/3.json deleted file mode 100644 index a332b86..0000000 --- a/tests/cockroach/xform/3.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "help": [ - "limit\n ├── columns: a:2 count:7!null\n ├── cardinality: [0 - 10]\n ├── stats: [rows=10]\n ├── cost: 1170.18056\n ├── key: (2)\n ├── fd: (2)--\u003e(7)\n ├── group-by (hash)\n │ ├── columns: a:2 count_rows:7!null\n │ ├── grouping columns: a:2\n │ ├── stats: [rows=100, distinct(2)=100, null(2)=1]\n │ ├── cost: 1170.07056\n │ ├── key: (2)\n │ ├── fd: (2)--\u003e(7)\n │ ├── limit hint: 10.00\n │ ├── project\n │ │ ├── columns: a:2\n │ │ ├── stats: [rows=1000, distinct(2)=100, null(2)=10]\n │ │ ├── cost: 1139.04\n │ │ └── scan b\n │ │ ├── columns: k:1!null a:2 b:3 c:4 crdb_internal_mvcc_timestamp:5 tableoid:6\n │ │ ├── stats: [rows=1000, distinct(2)=100, null(2)=10]\n │ │ ├── cost: 1129.02\n │ │ ├── key: (1)\n │ │ └── fd: (1)--\u003e(2-6)\n │ └── aggregations\n │ └── count-rows [as=count_rows:7]\n └── 10\n", - "limit\n ├── columns: a:2 count:7!null\n ├── cardinality: [0 - 10]\n ├── stats: [rows=10]\n ├── cost: 125.16\n ├── key: (2)\n ├── fd: (2)--\u003e(7)\n ├── group-by (streaming)\n │ ├── columns: a:2 count_rows:7!null\n │ ├── grouping columns: a:2\n │ ├── internal-ordering: +2\n │ ├── stats: [rows=100, distinct(2)=100, null(2)=1]\n │ ├── cost: 125.05\n │ ├── key: (2)\n │ ├── fd: (2)--\u003e(7)\n │ ├── limit hint: 10.00\n │ ├── scan b@b_a_b_idx\n │ │ ├── columns: a:2\n │ │ ├── stats: [rows=1000, distinct(2)=100, null(2)=10]\n │ │ ├── cost: 122.02\n │ │ ├── ordering: +2\n │ │ └── limit hint: 100.00\n │ └── aggregations\n │ └── count-rows [as=count_rows:7]\n └── 10\n" - ], - "queries": [ - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - } - } - } - } - }, - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - } - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/378.json b/tests/cockroach/xform/378.json deleted file mode 100644 index fe9febb..0000000 --- a/tests/cockroach/xform/378.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "help": [ - "project\n ├── columns: min:6\n └── group-by (hash)\n ├── columns: y:2 min:6\n ├── grouping columns: y:2\n ├── key: (2)\n ├── fd: (2)--\u003e(6)\n ├── project\n │ ├── columns: y:2\n │ └── scan xyz\n │ ├── columns: x:1!null y:2 z:3 crdb_internal_mvcc_timestamp:4 tableoid:5\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2-5)\n └── aggregations\n └── min [as=min:6, outer=(2)]\n └── y:2\n", - "project\n ├── columns: min:6\n └── group-by (streaming)\n ├── columns: y:2 min:6\n ├── grouping columns: y:2\n ├── internal-ordering: +2\n ├── key: (2)\n ├── fd: (2)--\u003e(6)\n ├── scan xyz@yy\n │ ├── columns: y:2\n │ └── ordering: +2\n └── aggregations\n └── min [as=min:6, outer=(2)]\n └── y:2\n" - ], - "queries": [ - { - "project": { - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 0, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - } - } - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 0, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - } - } - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/379.json b/tests/cockroach/xform/379.json deleted file mode 100644 index 3cc16e7..0000000 --- a/tests/cockroach/xform/379.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - "help": [ - "project\n ├── columns: max:6\n └── group-by (hash)\n ├── columns: y:2 max:6\n ├── grouping columns: y:2\n ├── key: (2)\n ├── fd: (2)--\u003e(6)\n ├── project\n │ ├── columns: y:2\n │ └── scan xyz\n │ ├── columns: x:1!null y:2 z:3 crdb_internal_mvcc_timestamp:4 tableoid:5\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2-5)\n └── aggregations\n └── max [as=max:6, outer=(2)]\n └── y:2\n", - "project\n ├── columns: max:6\n └── group-by (streaming)\n ├── columns: y:2 max:6\n ├── grouping columns: y:2\n ├── internal-ordering: +2\n ├── key: (2)\n ├── fd: (2)--\u003e(6)\n ├── scan xyz@yy\n │ ├── columns: y:2\n │ └── ordering: +2\n └── aggregations\n └── max [as=max:6, outer=(2)]\n └── y:2\n" - ], - "queries": [ - { - "project": { - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 0, - "type": "INT" - } - ], - "operator": "MAX", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - } - } - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 0, - "type": "INT" - } - ], - "operator": "MAX", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - } - } - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/380.json b/tests/cockroach/xform/380.json deleted file mode 100644 index eecdacf..0000000 --- a/tests/cockroach/xform/380.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "help": [ - "project\n ├── columns: min:6\n └── group-by (hash)\n ├── columns: x:1!null min:6\n ├── grouping columns: x:1!null\n ├── key: (1)\n ├── fd: (1)--\u003e(6)\n ├── project\n │ ├── columns: x:1!null y:2\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2)\n │ └── scan xyz\n │ ├── columns: x:1!null y:2 z:3 crdb_internal_mvcc_timestamp:4 tableoid:5\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2-5)\n └── aggregations\n └── min [as=min:6, outer=(2)]\n └── y:2\n", - "project\n ├── columns: min:6\n └── group-by (streaming)\n ├── columns: x:1!null min:6\n ├── grouping columns: x:1!null\n ├── internal-ordering: +1\n ├── key: (1)\n ├── fd: (1)--\u003e(6)\n ├── scan xyz@xy\n │ ├── columns: x:1!null y:2\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2)\n │ └── ordering: +1\n └── aggregations\n └── min [as=min:6, outer=(2)]\n └── y:2\n" - ], - "queries": [ - { - "project": { - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 1, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - } - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": true, - "operand": [ - { - "column": 1, - "type": "INT" - } - ], - "operator": "MIN", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - } - }, - "target": [ - { - "column": 1, - "type": "INT" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/39.json b/tests/cockroach/xform/39.json deleted file mode 100644 index b3df805..0000000 --- a/tests/cockroach/xform/39.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "help": [ - "project\n ├── columns: k:1!null s:3\n ├── stats: [rows=1000]\n ├── cost: 1139.04\n ├── key: (1)\n ├── fd: (1)--\u003e(3)\n └── scan a\n ├── columns: k:1!null i:2 s:3 d:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── stats: [rows=1000]\n ├── cost: 1129.02\n ├── key: (1)\n └── fd: (1)--\u003e(2-6)\n", - "scan a\n ├── columns: k:1!null s:3\n ├── stats: [rows=1000]\n ├── cost: 1088.62\n ├── key: (1)\n └── fd: (1)--\u003e(3)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "STRING", - "DECIMAL", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/4.json b/tests/cockroach/xform/4.json deleted file mode 100644 index b4b3f8b..0000000 --- a/tests/cockroach/xform/4.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "help": [ - "limit\n ├── columns: a:2 b:3 count:7!null\n ├── cardinality: [0 - 10]\n ├── stats: [rows=10]\n ├── cost: 1189.32625\n ├── key: (2,3)\n ├── fd: (2,3)--\u003e(7)\n ├── group-by (hash)\n │ ├── columns: a:2 b:3 count_rows:7!null\n │ ├── grouping columns: a:2 b:3\n │ ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n │ ├── cost: 1189.21625\n │ ├── key: (2,3)\n │ ├── fd: (2,3)--\u003e(7)\n │ ├── limit hint: 10.00\n │ ├── project\n │ │ ├── columns: a:2 b:3\n │ │ ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n │ │ ├── cost: 1139.04\n │ │ └── scan b\n │ │ ├── columns: k:1!null a:2 b:3 c:4 crdb_internal_mvcc_timestamp:5 tableoid:6\n │ │ ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n │ │ ├── cost: 1129.02\n │ │ ├── key: (1)\n │ │ └── fd: (1)--\u003e(2-6)\n │ └── aggregations\n │ └── count-rows [as=count_rows:7]\n └── 10\n", - "limit\n ├── columns: a:2 b:3 count:7!null\n ├── cardinality: [0 - 10]\n ├── stats: [rows=10]\n ├── cost: 38.96\n ├── key: (2,3)\n ├── fd: (2,3)--\u003e(7)\n ├── group-by (streaming)\n │ ├── columns: a:2 b:3 count_rows:7!null\n │ ├── grouping columns: a:2 b:3\n │ ├── internal-ordering: +2,+3\n │ ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n │ ├── cost: 38.85\n │ ├── key: (2,3)\n │ ├── fd: (2,3)--\u003e(7)\n │ ├── limit hint: 10.00\n │ ├── scan b@b_a_b_idx\n │ │ ├── columns: a:2 b:3\n │ │ ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n │ │ ├── cost: 28.52\n │ │ ├── ordering: +2,+3\n │ │ └── limit hint: 10.00\n │ └── aggregations\n │ └── count-rows [as=count_rows:7]\n └── 10\n" - ], - "queries": [ - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - } - }, - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/40.json b/tests/cockroach/xform/40.json deleted file mode 100644 index 7e13716..0000000 --- a/tests/cockroach/xform/40.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "help": [ - "project\n ├── columns: k:1!null s:3\n ├── stats: [rows=100000]\n ├── cost: 111029.04\n ├── key: (1)\n ├── fd: (1)--\u003e(3)\n └── scan a\n ├── columns: k:1!null i:2 s:3 d:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── stats: [rows=100000]\n ├── cost: 110029.02\n ├── key: (1)\n └── fd: (1)--\u003e(2-6)\n", - "scan a\n ├── columns: k:1!null s:3\n ├── stats: [rows=100000]\n ├── cost: 106028.62\n ├── key: (1)\n └── fd: (1)--\u003e(3)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "STRING", - "DECIMAL", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/41.json b/tests/cockroach/xform/41.json deleted file mode 100644 index 8f8b61a..0000000 --- a/tests/cockroach/xform/41.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "help": [ - "project\n ├── columns: k:1!null s:3\n ├── stats: [rows=100000]\n ├── cost: 111529.09\n ├── key: (1)\n ├── fd: (1)--\u003e(3)\n └── scan a\n ├── columns: k:1!null i:2 s:3 d:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── stats: [rows=100000]\n ├── cost: 110529.07\n ├── key: (1)\n └── fd: (1)--\u003e(2-6)\n", - "scan a\n ├── columns: k:1!null s:3\n ├── stats: [rows=100000]\n ├── cost: 107278.745\n ├── key: (1)\n └── fd: (1)--\u003e(3)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "STRING", - "DECIMAL", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/432.json b/tests/cockroach/xform/432.json deleted file mode 100644 index 578a771..0000000 --- a/tests/cockroach/xform/432.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "help": [ - "group-by (hash)\n ├── columns: count:8!null c:3\n ├── grouping columns: c:3\n ├── key: (3)\n ├── fd: (3)--\u003e(8)\n ├── project\n │ ├── columns: c:3\n │ └── select\n │ ├── columns: a:1 b:2 c:3 d:4!null rowid:5!null crdb_internal_mvcc_timestamp:6 tableoid:7\n │ ├── key: (5)\n │ ├── fd: ()--\u003e(4), (5)--\u003e(1-3,6,7)\n │ ├── scan abcd\n │ │ ├── columns: a:1 b:2 c:3 d:4 rowid:5!null crdb_internal_mvcc_timestamp:6 tableoid:7\n │ │ ├── partial index predicates\n │ │ │ ├── partial_ab: filters\n │ │ │ │ └── c:3 \u003e 0 [outer=(3), constraints=(/3: [/1 - ]; tight)]\n │ │ │ └── partial_cb: filters\n │ │ │ └── d:4 = 1 [outer=(4), constraints=(/4: [/1 - /1]; tight), fd=()--\u003e(4)]\n │ │ ├── key: (5)\n │ │ └── fd: (5)--\u003e(1-4,6,7)\n │ └── filters\n │ └── d:4 = 1 [outer=(4), constraints=(/4: [/1 - /1]; tight), fd=()--\u003e(4)]\n └── aggregations\n └── count-rows [as=count_rows:8]\n", - "group-by (streaming)\n ├── columns: count:8!null c:3\n ├── grouping columns: c:3\n ├── internal-ordering: +3\n ├── key: (3)\n ├── fd: (3)--\u003e(8)\n ├── scan abcd@partial_cb,partial\n │ ├── columns: c:3\n │ └── ordering: +3\n └── aggregations\n └── count-rows [as=count_rows:8]\n" - ], - "queries": [ - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "filter": { - "condition": { - "operand": [ - { - "operand": [ - { - "column": 3, - "type": "INT" - }, - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - "operator": "EQ", - "type": "BOOL" - } - ], - "operator": "AND", - "type": "BOOLEAN" - }, - "source": { - "scan": 0 - } - } - }, - "target": [ - { - "column": 2, - "type": "INT" - } - ] - } - } - } - }, - { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "filter": { - "condition": { - "operand": [ - { - "operand": [ - { - "column": 3, - "type": "INT" - }, - { - "operand": [], - "operator": "1", - "type": "INT" - } - ], - "operator": "EQ", - "type": "BOOL" - } - ], - "operator": "AND", - "type": "BOOLEAN" - }, - "source": { - "scan": 0 - } - } - }, - "target": [ - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 4 - ] - ], - "nullable": [ - true, - true, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "FLOAT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/44.json b/tests/cockroach/xform/44.json deleted file mode 100644 index c137daf..0000000 --- a/tests/cockroach/xform/44.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "help": [ - "project\n ├── columns: k:1!null i:2 s:3 d:4!null\n ├── stats: [rows=1]\n ├── cost: 30.15\n ├── key: (1)\n ├── fd: (1)--\u003e(2-4)\n ├── ordering: -1\n └── scan a,rev\n ├── columns: k:1!null i:2 s:3 d:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── stats: [rows=1]\n ├── cost: 30.12\n ├── key: (1)\n ├── fd: (1)--\u003e(2-6)\n └── ordering: -1\n", - "scan a,rev\n ├── columns: k:1!null i:2 s:3 d:4!null\n ├── stats: [rows=1]\n ├── cost: 29.9\n ├── key: (1)\n ├── fd: (1)--\u003e(2-4)\n └── ordering: -1\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - }, - { - "column": 3, - "type": "DECIMAL" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - }, - { - "column": 3, - "type": "DECIMAL" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "STRING", - "DECIMAL", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/443.json b/tests/cockroach/xform/443.json deleted file mode 100644 index 53d8514..0000000 --- a/tests/cockroach/xform/443.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "help": [ - "limit\n ├── columns: d:1 g:4 count:8!null\n ├── cardinality: [0 - 10]\n ├── key: (1,4)\n ├── fd: (1,4)--\u003e(8)\n ├── group-by (hash)\n │ ├── columns: d:1 g:4 count_rows:8!null\n │ ├── grouping columns: d:1 g:4\n │ ├── key: (1,4)\n │ ├── fd: (1,4)--\u003e(8)\n │ ├── limit hint: 10.00\n │ ├── project\n │ │ ├── columns: d:1 g:4\n │ │ └── scan defg\n │ │ ├── columns: d:1 e:2 f:3 g:4 rowid:5!null crdb_internal_mvcc_timestamp:6 tableoid:7\n │ │ ├── key: (5)\n │ │ └── fd: (5)--\u003e(1-4,6,7)\n │ └── aggregations\n │ └── count-rows [as=count_rows:8]\n └── 10\n", - "limit\n ├── columns: d:1 g:4 count:8!null\n ├── cardinality: [0 - 10]\n ├── key: (1,4)\n ├── fd: (1,4)--\u003e(8)\n ├── group-by (streaming)\n │ ├── columns: d:1 g:4 count_rows:8!null\n │ ├── grouping columns: d:1 g:4\n │ ├── internal-ordering: +4,+1\n │ ├── key: (1,4)\n │ ├── fd: (1,4)--\u003e(8)\n │ ├── limit hint: 10.00\n │ ├── scan defg@gd\n │ │ ├── columns: d:1 g:4\n │ │ ├── ordering: +4,+1\n │ │ └── limit hint: 10.00\n │ └── aggregations\n │ └── count-rows [as=count_rows:8]\n └── 10\n" - ], - "queries": [ - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 3, - "type": "INT" - } - ] - } - } - } - } - } - }, - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 3, - "type": "INT" - } - ] - } - } - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 4 - ] - ], - "nullable": [ - true, - true, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/446.json b/tests/cockroach/xform/446.json deleted file mode 100644 index c2754f5..0000000 --- a/tests/cockroach/xform/446.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "help": [ - "limit\n ├── columns: f:3 e:2 count:8!null\n ├── cardinality: [0 - 10]\n ├── key: (2,3)\n ├── fd: (2,3)--\u003e(8)\n ├── group-by (hash)\n │ ├── columns: e:2 f:3 count_rows:8!null\n │ ├── grouping columns: e:2 f:3\n │ ├── key: (2,3)\n │ ├── fd: (2,3)--\u003e(8)\n │ ├── limit hint: 10.00\n │ ├── project\n │ │ ├── columns: e:2 f:3\n │ │ └── scan defg\n │ │ ├── columns: d:1 e:2 f:3 g:4 rowid:5!null crdb_internal_mvcc_timestamp:6 tableoid:7\n │ │ ├── key: (5)\n │ │ └── fd: (5)--\u003e(1-4,6,7)\n │ └── aggregations\n │ └── count-rows [as=count_rows:8]\n └── 10\n", - "limit\n ├── columns: f:3 e:2 count:8!null\n ├── cardinality: [0 - 10]\n ├── key: (2,3)\n ├── fd: (2,3)--\u003e(8)\n ├── group-by (hash)\n │ ├── columns: e:2 f:3 count_rows:8!null\n │ ├── grouping columns: e:2 f:3\n │ ├── key: (2,3)\n │ ├── fd: (2,3)--\u003e(8)\n │ ├── limit hint: 10.00\n │ ├── scan defg\n │ │ └── columns: e:2 f:3\n │ └── aggregations\n │ └── count-rows [as=count_rows:8]\n └── 10\n" - ], - "queries": [ - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - } - }, - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 4 - ] - ], - "nullable": [ - true, - true, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/50.json b/tests/cockroach/xform/50.json deleted file mode 100644 index 16400df..0000000 --- a/tests/cockroach/xform/50.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "help": [ - "project\n ├── columns: k:1!null a:2 b:3 c:4\n ├── stats: [rows=100000]\n ├── cost: 1e+100\n ├── key: (1)\n ├── fd: (1)--\u003e(2-4)\n └── scan t\n ├── columns: k:1!null a:2 b:3 c:4 crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── flags: no-full-scan\n ├── stats: [rows=100000]\n ├── cost: 1e+100\n ├── key: (1)\n └── fd: (1)--\u003e(2-6)\n", - "scan t\n ├── columns: k:1!null a:2 b:3 c:4\n ├── flags: no-full-scan\n ├── stats: [rows=100000]\n ├── cost: 1e+100\n ├── key: (1)\n └── fd: (1)--\u003e(2-4)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - }, - { - "column": 3, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - }, - { - "column": 3, - "type": "INT" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/53.json b/tests/cockroach/xform/53.json deleted file mode 100644 index 9e984dd..0000000 --- a/tests/cockroach/xform/53.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "help": [ - "project\n ├── columns: x:1\n ├── stats: [rows=1000]\n ├── cost: 1255.19\n └── scan b\n ├── columns: x:1 y:2 z:3 s:4 rowid:5!null crdb_internal_mvcc_timestamp:6 tableoid:7\n ├── stats: [rows=1000]\n ├── cost: 1245.17\n ├── key: (5)\n └── fd: (5)--\u003e(1-4,6,7)\n", - "scan b@xyz\n ├── columns: x:1\n ├── stats: [rows=1000]\n └── cost: 1055.795\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 4 - ] - ], - "nullable": [ - true, - true, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "STRING", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/59.json b/tests/cockroach/xform/59.json deleted file mode 100644 index 97e43d9..0000000 --- a/tests/cockroach/xform/59.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "help": [ - "union\n ├── columns: k:12 i:13\n ├── left columns: a.k:1 a.i:2\n ├── right columns: x:7 z:8\n ├── stats: [rows=2000, distinct(12,13)=2000, null(12,13)=0]\n ├── cost: 2298.50501\n ├── key: (12,13)\n ├── project\n │ ├── columns: a.k:1!null a.i:2\n │ ├── stats: [rows=1000, distinct(1,2)=1000, null(1,2)=0]\n │ ├── cost: 1139.04\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2)\n │ └── scan a\n │ ├── columns: a.k:1!null a.i:2 s:3 d:4!null a.crdb_internal_mvcc_timestamp:5 a.tableoid:6\n │ ├── stats: [rows=1000, distinct(1,2)=1000, null(1,2)=0]\n │ ├── cost: 1129.02\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2-6)\n └── project\n ├── columns: x:7 z:8!null\n ├── stats: [rows=1000, distinct(7,8)=1000, null(7,8)=0]\n ├── cost: 1118.84\n └── scan b\n ├── columns: x:7 z:8!null rowid:9!null b.crdb_internal_mvcc_timestamp:10 b.tableoid:11\n ├── stats: [rows=1000, distinct(7,8)=1000, null(7,8)=0]\n ├── cost: 1108.82\n ├── key: (9)\n └── fd: (9)--\u003e(7,8,10,11)\n", - "union\n ├── columns: k:12 i:13\n ├── left columns: a.k:1 a.i:2\n ├── right columns: x:7 z:8\n ├── stats: [rows=2000, distinct(12,13)=2000, null(12,13)=0]\n ├── cost: 2207.76501\n ├── key: (12,13)\n ├── scan a\n │ ├── columns: a.k:1!null a.i:2\n │ ├── stats: [rows=1000, distinct(1,2)=1000, null(1,2)=0]\n │ ├── cost: 1088.62\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2)\n └── scan b\n ├── columns: x:7 z:8!null\n ├── stats: [rows=1000, distinct(7,8)=1000, null(7,8)=0]\n └── cost: 1078.52\n" - ], - "queries": [ - { - "distinct": { - "union": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 1 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - ] - } - }, - { - "distinct": { - "union": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 1 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "STRING", - "DECIMAL", - "DECIMAL", - "OID" - ] - }, - { - "key": [ - [ - 2 - ] - ], - "nullable": [ - true, - false, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/6.json b/tests/cockroach/xform/6.json deleted file mode 100644 index ce2db12..0000000 --- a/tests/cockroach/xform/6.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "help": [ - "limit\n ├── columns: b:2 d:4 count:8!null\n ├── cardinality: [0 - 10]\n ├── stats: [rows=10]\n ├── cost: 1209.52625\n ├── key: (2,4)\n ├── fd: (2,4)--\u003e(8)\n ├── group-by (hash)\n │ ├── columns: b:2 d:4 count_rows:8!null\n │ ├── grouping columns: b:2 d:4\n │ ├── stats: [rows=1000, distinct(2,4)=1000, null(2,4)=0.1]\n │ ├── cost: 1209.41625\n │ ├── key: (2,4)\n │ ├── fd: (2,4)--\u003e(8)\n │ ├── limit hint: 10.00\n │ ├── project\n │ │ ├── columns: b:2 d:4\n │ │ ├── stats: [rows=1000, distinct(2,4)=1000, null(2,4)=0.1]\n │ │ ├── cost: 1159.24\n │ │ └── scan c\n │ │ ├── columns: a:1 b:2 c:3 d:4 rowid:5!null crdb_internal_mvcc_timestamp:6 tableoid:7\n │ │ ├── stats: [rows=1000, distinct(2,4)=1000, null(2,4)=0.1]\n │ │ ├── cost: 1149.22\n │ │ ├── key: (5)\n │ │ └── fd: (5)--\u003e(1-4,6,7)\n │ └── aggregations\n │ └── count-rows [as=count_rows:8]\n └── 10\n", - "limit\n ├── columns: b:2 d:4 count:8!null\n ├── cardinality: [0 - 10]\n ├── stats: [rows=10]\n ├── cost: 39.16\n ├── key: (2,4)\n ├── fd: (2,4)--\u003e(8)\n ├── group-by (partial streaming)\n │ ├── columns: b:2 d:4 count_rows:8!null\n │ ├── grouping columns: b:2 d:4\n │ ├── internal-ordering: +2\n │ ├── stats: [rows=1000, distinct(2,4)=1000, null(2,4)=0.1]\n │ ├── cost: 39.05\n │ ├── key: (2,4)\n │ ├── fd: (2,4)--\u003e(8)\n │ ├── limit hint: 10.00\n │ ├── scan c@c_b_c_d_idx\n │ │ ├── columns: b:2 d:4\n │ │ ├── stats: [rows=1000, distinct(2,4)=1000, null(2,4)=0.1]\n │ │ ├── cost: 28.62\n │ │ ├── ordering: +2\n │ │ └── limit hint: 10.00\n │ └── aggregations\n │ └── count-rows [as=count_rows:8]\n └── 10\n" - ], - "queries": [ - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 3, - "type": "INT" - } - ] - } - } - } - } - } - }, - { - "sort": { - "collation": [], - "limit": { - "operand": [], - "operator": "10", - "type": "INT" - }, - "source": { - "group": { - "function": [ - { - "distinct": false, - "ignoreNulls": false, - "operand": [], - "operator": "COUNT ROWS", - "type": "INT" - } - ], - "keys": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "INT" - }, - { - "column": 3, - "type": "INT" - } - ] - } - } - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 4 - ] - ], - "nullable": [ - true, - true, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/60.json b/tests/cockroach/xform/60.json deleted file mode 100644 index 768f523..0000000 --- a/tests/cockroach/xform/60.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "help": [ - "union-all\n ├── columns: k:12 i:13\n ├── left columns: a.k:1 a.i:2\n ├── right columns: x:7 z:8\n ├── stats: [rows=2000]\n ├── cost: 2277.9\n ├── project\n │ ├── columns: a.k:1!null a.i:2\n │ ├── stats: [rows=1000]\n │ ├── cost: 1139.04\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2)\n │ └── scan a\n │ ├── columns: a.k:1!null a.i:2 s:3 d:4!null a.crdb_internal_mvcc_timestamp:5 a.tableoid:6\n │ ├── stats: [rows=1000]\n │ ├── cost: 1129.02\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2-6)\n └── project\n ├── columns: x:7 z:8!null\n ├── stats: [rows=1000]\n ├── cost: 1118.84\n └── scan b\n ├── columns: x:7 z:8!null rowid:9!null b.crdb_internal_mvcc_timestamp:10 b.tableoid:11\n ├── stats: [rows=1000]\n ├── cost: 1108.82\n ├── key: (9)\n └── fd: (9)--\u003e(7,8,10,11)\n", - "union-all\n ├── columns: k:12 i:13\n ├── left columns: a.k:1 a.i:2\n ├── right columns: x:7 z:8\n ├── stats: [rows=2000]\n ├── cost: 2187.16\n ├── scan a\n │ ├── columns: a.k:1!null a.i:2\n │ ├── stats: [rows=1000]\n │ ├── cost: 1088.62\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2)\n └── scan b\n ├── columns: x:7 z:8!null\n ├── stats: [rows=1000]\n └── cost: 1078.52\n" - ], - "queries": [ - { - "union": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 1 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - ] - }, - { - "union": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 1 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - } - ] - } - } - ] - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "STRING", - "DECIMAL", - "DECIMAL", - "OID" - ] - }, - { - "key": [ - [ - 2 - ] - ], - "nullable": [ - true, - false, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/65.json b/tests/cockroach/xform/65.json deleted file mode 100644 index 21aeb24..0000000 --- a/tests/cockroach/xform/65.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "help": [ - "sort\n ├── columns: f:2!null\n ├── stats: [rows=1000]\n ├── cost: 1368.52194\n ├── ordering: -2\n └── project\n ├── columns: f:2!null\n ├── stats: [rows=1000]\n ├── cost: 1139.04\n └── scan a\n ├── columns: k:1!null f:2!null z:3 s:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── stats: [rows=1000]\n ├── cost: 1129.02\n ├── key: (1,2)\n └── fd: (1,2)--\u003e(3-6)\n", - "sort\n ├── columns: f:2!null\n ├── stats: [rows=1000]\n ├── cost: 1308.00194\n ├── ordering: -2\n └── scan a\n ├── columns: f:2!null\n ├── stats: [rows=1000]\n └── cost: 1078.52\n" - ], - "queries": [ - { - "sort": { - "collation": [ - [ - 0, - "FLOAT", - "DESCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "FLOAT" - } - ] - } - } - } - }, - { - "sort": { - "collation": [ - [ - 0, - "FLOAT", - "DESCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 1, - "type": "FLOAT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0, - 1 - ] - ], - "nullable": [ - false, - false, - true, - false, - true, - true - ], - "types": [ - "INT", - "FLOAT", - "DECIMAL", - "STRING", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/67.json b/tests/cockroach/xform/67.json deleted file mode 100644 index d69533b..0000000 --- a/tests/cockroach/xform/67.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "help": [ - "sort\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=1000]\n ├── cost: 1400.5843\n ├── ordering: +2,+3,+1\n └── project\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=1000]\n ├── cost: 1139.04\n └── scan abc\n ├── columns: a:1 b:2 c:3 rowid:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── stats: [rows=1000]\n ├── cost: 1129.02\n ├── key: (4)\n └── fd: (4)--\u003e(1-3,5,6)\n", - "sort\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=1000]\n ├── cost: 1360.2643\n ├── ordering: +2,+3,+1\n └── scan abc\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=1000]\n └── cost: 1098.72\n" - ], - "queries": [ - { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ], - [ - 2, - "INT", - "ASCENDING" - ], - [ - 0, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - }, - { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ], - [ - 2, - "INT", - "ASCENDING" - ], - [ - 0, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 3 - ] - ], - "nullable": [ - true, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/68.json b/tests/cockroach/xform/68.json deleted file mode 100644 index 9814773..0000000 --- a/tests/cockroach/xform/68.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "help": [ - "sort\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=1000, distinct(1,2)=1000, null(1,2)=0.1]\n ├── cost: 1400.5843\n ├── ordering: +1,+2,+3\n └── project\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=1000, distinct(1,2)=1000, null(1,2)=0.1]\n ├── cost: 1139.04\n └── scan abc\n ├── columns: a:1 b:2 c:3 rowid:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── stats: [rows=1000, distinct(1,2)=1000, null(1,2)=0.1]\n ├── cost: 1129.02\n ├── key: (4)\n └── fd: (4)--\u003e(1-3,5,6)\n", - "sort (segmented)\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=1000, distinct(1,2)=1000, null(1,2)=0.1]\n ├── cost: 1168.74\n ├── ordering: +1,+2,+3\n └── scan abc@ab\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=1000, distinct(1,2)=1000, null(1,2)=0.1]\n ├── cost: 1098.72\n └── ordering: +1,+2\n" - ], - "queries": [ - { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ], - [ - 1, - "INT", - "ASCENDING" - ], - [ - 2, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - }, - { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ], - [ - 1, - "INT", - "ASCENDING" - ], - [ - 2, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 3 - ] - ], - "nullable": [ - true, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/69.json b/tests/cockroach/xform/69.json deleted file mode 100644 index 093b10a..0000000 --- a/tests/cockroach/xform/69.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "help": [ - "sort\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n ├── cost: 1400.5843\n ├── ordering: +3,+2,+1\n └── project\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n ├── cost: 1139.04\n └── scan abc\n ├── columns: a:1 b:2 c:3 rowid:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n ├── cost: 1129.02\n ├── key: (4)\n └── fd: (4)--\u003e(1-3,5,6)\n", - "sort (segmented)\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n ├── cost: 1168.74\n ├── ordering: +3,+2,+1\n └── scan abc@cb\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=1000, distinct(2,3)=1000, null(2,3)=0.1]\n ├── cost: 1098.72\n └── ordering: +3,+2\n" - ], - "queries": [ - { - "sort": { - "collation": [ - [ - 2, - "INT", - "ASCENDING" - ], - [ - 1, - "INT", - "ASCENDING" - ], - [ - 0, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - }, - { - "sort": { - "collation": [ - [ - 2, - "INT", - "ASCENDING" - ], - [ - 1, - "INT", - "ASCENDING" - ], - [ - 0, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 3 - ] - ], - "nullable": [ - true, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/70.json b/tests/cockroach/xform/70.json deleted file mode 100644 index 70bb95c..0000000 --- a/tests/cockroach/xform/70.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "help": [ - "sort\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=1000, distinct(3)=100, null(3)=10]\n ├── cost: 1400.5843\n ├── ordering: +3,+1,+2\n └── project\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=1000, distinct(3)=100, null(3)=10]\n ├── cost: 1139.04\n └── scan abc\n ├── columns: a:1 b:2 c:3 rowid:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── stats: [rows=1000, distinct(3)=100, null(3)=10]\n ├── cost: 1129.02\n ├── key: (4)\n └── fd: (4)--\u003e(1-3,5,6)\n", - "sort (segmented)\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=1000, distinct(3)=100, null(3)=10]\n ├── cost: 1229.50049\n ├── ordering: +3,+1,+2\n └── scan abc@cb\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=1000, distinct(3)=100, null(3)=10]\n ├── cost: 1098.72\n └── ordering: +3\n" - ], - "queries": [ - { - "sort": { - "collation": [ - [ - 2, - "INT", - "ASCENDING" - ], - [ - 0, - "INT", - "ASCENDING" - ], - [ - 1, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - }, - { - "sort": { - "collation": [ - [ - 2, - "INT", - "ASCENDING" - ], - [ - 0, - "INT", - "ASCENDING" - ], - [ - 1, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 3 - ] - ], - "nullable": [ - true, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/71.json b/tests/cockroach/xform/71.json deleted file mode 100644 index 2850fe8..0000000 --- a/tests/cockroach/xform/71.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "help": [ - "sort\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=10000, distinct(1,2)=10, null(1,2)=0]\n ├── cost: 14459.2925\n ├── ordering: +1,+2,+3\n └── project\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=10000, distinct(1,2)=10, null(1,2)=0]\n ├── cost: 11129.04\n └── scan abc\n ├── columns: a:1 b:2 c:3 rowid:4!null crdb_internal_mvcc_timestamp:5 tableoid:6\n ├── stats: [rows=10000, distinct(1,2)=10, null(1,2)=0]\n ├── cost: 11029.02\n ├── key: (4)\n └── fd: (4)--\u003e(1-3,5,6)\n", - "sort (segmented)\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=10000, distinct(1,2)=10, null(1,2)=0]\n ├── cost: 13423.3594\n ├── ordering: +1,+2,+3\n └── scan abc@ab\n ├── columns: a:1 b:2 c:3\n ├── stats: [rows=10000, distinct(1,2)=10, null(1,2)=0]\n ├── cost: 10728.72\n └── ordering: +1,+2\n" - ], - "queries": [ - { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ], - [ - 1, - "INT", - "ASCENDING" - ], - [ - 2, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - }, - { - "sort": { - "collation": [ - [ - 0, - "INT", - "ASCENDING" - ], - [ - 1, - "INT", - "ASCENDING" - ], - [ - 2, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - } - ] - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 3 - ] - ], - "nullable": [ - true, - true, - true, - false, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/88.json b/tests/cockroach/xform/88.json deleted file mode 100644 index 1f2f11a..0000000 --- a/tests/cockroach/xform/88.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "help": [ - "values\n ├── columns: column1:1!null column2:2!null column3:3!null\n ├── cardinality: [2 - 2]\n ├── stats: [rows=2]\n ├── cost: 0.03\n ├── (1, 2, 3)\n └── (4, 5, 6)\n", - "values\n ├── columns: column1:1!null column2:2!null column3:3!null\n ├── cardinality: [2 - 2]\n ├── stats: [rows=2]\n ├── cost: 0.03\n ├── (1, 2, 3)\n └── (4, 5, 6)\n" - ], - "queries": [ - { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - }, - { - "operand": [], - "operator": "2", - "type": "INT" - }, - { - "operand": [], - "operator": "3", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "4", - "type": "INT" - }, - { - "operand": [], - "operator": "5", - "type": "INT" - }, - { - "operand": [], - "operator": "6", - "type": "INT" - } - ] - ], - "schema": [ - "INT", - "INT", - "INT" - ] - } - }, - { - "values": { - "content": [ - [ - { - "operand": [], - "operator": "1", - "type": "INT" - }, - { - "operand": [], - "operator": "2", - "type": "INT" - }, - { - "operand": [], - "operator": "3", - "type": "INT" - } - ], - [ - { - "operand": [], - "operator": "4", - "type": "INT" - }, - { - "operand": [], - "operator": "5", - "type": "INT" - }, - { - "operand": [], - "operator": "6", - "type": "INT" - } - ] - ], - "schema": [ - "INT", - "INT", - "INT" - ] - } - } - ], - "schemas": [] -} \ No newline at end of file diff --git a/tests/cockroach/xform/886.json b/tests/cockroach/xform/886.json deleted file mode 100644 index 2fbf604..0000000 --- a/tests/cockroach/xform/886.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "help": [ - "limit\n ├── columns: k:1!null i:2 f:3 s:4 j:5\n ├── internal-ordering: +2\n ├── cardinality: [0 - 0]\n ├── immutable\n ├── key: ()\n ├── fd: ()--\u003e(1-5)\n ├── ordering: +2\n ├── sort\n │ ├── columns: k:1!null i:2 f:3 s:4 j:5\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2-5)\n │ ├── ordering: +2\n │ ├── limit hint: 1.00\n │ └── project\n │ ├── columns: k:1!null i:2 f:3 s:4 j:5\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2-5)\n │ └── scan a\n │ ├── columns: k:1!null i:2 f:3 s:4 j:5 crdb_internal_mvcc_timestamp:6 tableoid:7\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2-7)\n └── -1\n", - "limit\n ├── columns: k:1!null i:2 f:3 s:4 j:5\n ├── internal-ordering: +2\n ├── cardinality: [0 - 0]\n ├── immutable\n ├── key: ()\n ├── fd: ()--\u003e(1-5)\n ├── sort\n │ ├── columns: k:1!null i:2 f:3 s:4 j:5\n │ ├── key: (1)\n │ ├── fd: (1)--\u003e(2-5)\n │ ├── ordering: +2\n │ ├── limit hint: 1.00\n │ └── scan a\n │ ├── columns: k:1!null i:2 f:3 s:4 j:5\n │ ├── key: (1)\n │ └── fd: (1)--\u003e(2-5)\n └── -1\n" - ], - "queries": [ - { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ] - ], - "limit": { - "operand": [], - "operator": "-1", - "type": "INT" - }, - "source": { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "FLOAT" - }, - { - "column": 3, - "type": "STRING" - }, - { - "column": 4, - "type": "JSONB" - } - ] - } - } - } - } - } - }, - { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ] - ], - "limit": { - "operand": [], - "operator": "-1", - "type": "INT" - }, - "source": { - "sort": { - "collation": [ - [ - 1, - "INT", - "ASCENDING" - ] - ], - "source": { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "FLOAT" - }, - { - "column": 3, - "type": "STRING" - }, - { - "column": 4, - "type": "JSONB" - } - ] - } - } - } - } - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "FLOAT", - "STRING", - "JSONB", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/90.json b/tests/cockroach/xform/90.json deleted file mode 100644 index 3725497..0000000 --- a/tests/cockroach/xform/90.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "help": [ - "project\n ├── columns: a:1(int!null) b:2(int) c:3(string)\n ├── stats: [rows=1000]\n ├── cost: 1114.84\n ├── key: (1)\n ├── fd: (1)--\u003e(2,3), (2,3)~~\u003e(1)\n ├── distribution: central\n ├── prune: (1-3)\n └── scan t.public.abc\n ├── columns: t.public.abc.a:1(int!null) t.public.abc.b:2(int) t.public.abc.c:3(string) t.public.abc.crdb_internal_mvcc_timestamp:4(decimal) t.public.abc.tableoid:5(oid)\n ├── stats: [rows=1000]\n ├── cost: 1104.82\n ├── key: (1)\n ├── fd: (1)--\u003e(2-5), (2,3)~~\u003e(1,4,5)\n ├── distribution: central\n └── prune: (1-5)\n", - "scan t.public.abc\n ├── columns: a:1(int!null) b:2(int) c:3(string)\n ├── stats: [rows=1000]\n ├── cost: 1084.62\n ├── key: (1)\n ├── fd: (1)--\u003e(2,3), (2,3)~~\u003e(1)\n ├── distribution: central\n └── prune: (1-3)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "STRING", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/905.json b/tests/cockroach/xform/905.json deleted file mode 100644 index 854a83f..0000000 --- a/tests/cockroach/xform/905.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "help": [ - "project\n ├── columns: a:1!null b:2 c:3 d:4 e:5\n ├── key: (1)\n ├── fd: (1)--\u003e(2-5), (2,3)~~\u003e(1,4,5)\n ├── ordering: +1,+2,+3,+4\n └── scan abcde\n ├── columns: a:1!null b:2 c:3 d:4 e:5 crdb_internal_mvcc_timestamp:6 tableoid:7\n ├── key: (1)\n ├── fd: (1)--\u003e(2-7), (2,3)~~\u003e(1,4-7)\n └── ordering: +1\n", - "scan abcde\n ├── columns: a:1!null b:2 c:3 d:4 e:5\n ├── key: (1)\n ├── fd: (1)--\u003e(2-5), (2,3)~~\u003e(1,4,5)\n └── ordering: +1\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - }, - { - "column": 3, - "type": "INT" - }, - { - "column": 4, - "type": "INT" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "INT" - }, - { - "column": 3, - "type": "INT" - }, - { - "column": 4, - "type": "INT" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "INT", - "INT", - "INT", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file diff --git a/tests/cockroach/xform/96.json b/tests/cockroach/xform/96.json deleted file mode 100644 index e2c98c0..0000000 --- a/tests/cockroach/xform/96.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "help": [ - "project\n ├── columns: a:1(int!null) b:2(int) c:3(string)\n ├── stats: [rows=1000]\n ├── cost: 1114.84\n ├── key: (1)\n ├── fd: (1)--\u003e(2,3), (2,3)~~\u003e(1)\n ├── distribution: us\n ├── prune: (1-3)\n └── scan t.public.abc\n ├── columns: t.public.abc.a:1(int!null) t.public.abc.b:2(int) t.public.abc.c:3(string) t.public.abc.crdb_internal_mvcc_timestamp:4(decimal) t.public.abc.tableoid:5(oid)\n ├── stats: [rows=1000]\n ├── cost: 1104.82\n ├── key: (1)\n ├── fd: (1)--\u003e(2-5), (2,3)~~\u003e(1,4,5)\n ├── distribution: us\n └── prune: (1-5)\n", - "scan t.public.abc\n ├── columns: a:1(int!null) b:2(int) c:3(string)\n ├── stats: [rows=1000]\n ├── cost: 1084.62\n ├── key: (1)\n ├── fd: (1)--\u003e(2,3), (2,3)~~\u003e(1)\n ├── distribution: us\n └── prune: (1-3)\n" - ], - "queries": [ - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - }, - { - "project": { - "source": { - "scan": 0 - }, - "target": [ - { - "column": 0, - "type": "INT" - }, - { - "column": 1, - "type": "INT" - }, - { - "column": 2, - "type": "STRING" - } - ] - } - } - ], - "schemas": [ - { - "key": [ - [ - 0 - ] - ], - "nullable": [ - false, - true, - true, - true, - true - ], - "types": [ - "INT", - "INT", - "STRING", - "DECIMAL", - "OID" - ] - } - ] -} \ No newline at end of file