Skip to content

Commit 4d8d90c

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/master'
# Conflicts: # tools/greenplum-to-pg-tests/cmd/check_pg_queries.go # tools/greenplum-to-pg-tests/issues.yaml
2 parents 37989db + 92c8726 commit 4d8d90c

File tree

1 file changed

+85
-39
lines changed

1 file changed

+85
-39
lines changed

tools/greenplum-to-pg-tests/issues.yaml

Lines changed: 85 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,83 @@ stat:
33
total_ok: 15
44
ok_percent: 65.21739130434783
55
issues:
6-
- name: general parsing errors
7-
issue_regexp:
8-
- "Error while parsing query."
9-
skip: true
10-
- name: Select from pg_tables
11-
query_regexp:
12-
- (?is)SELECT.*FROM\s+pg_
136
- name: Transaction control (OK)
14-
count: 1
7+
count: 21661922
158
query_regexp:
169
- "(?i)^\\s*COMMIT\\s*;?\\s*$"
1710
- "(?i)^\\s*ROLLBACK\\s*;?\\s*$"
11+
- name: table not found
12+
count: 8256783
13+
issue_regexp: Cannot find table
14+
print_issue_to_log: True
15+
- name: Select from pg_tables
16+
count: 3930760
17+
query_regexp:
18+
- (?is)SELECT.*FROM\s+pg_
19+
- name: Set variables
20+
count: 1553568
21+
issue_regexp: "VariableSetStmt, not supported name"
22+
- name: 'PG: InsertStmt: not supported onConflictClause'
23+
count: 1482133
24+
issue_link: https://github.com/ydb-platform/ydb/issues/7194
25+
issue_regexp:
26+
- 'InsertStmt: not supported onConflictClause'
27+
example: |
28+
INSERT INTO table (hostname, updated, max_connections) VALUES ($1, NOW(), $2)
29+
ON CONFLICT (hostname) DO UPDATE SET updated = NOW(), max_connections = $2
30+
- name: Generator functions in SELECT
31+
count: 317436
32+
issue_link: https://github.com/ydb-platform/ydb/issues/7195
33+
issue_regexp:
34+
- '^Generator functions are not allowed in: SELECT$'
35+
example: SELECT UNNEST($1)
36+
- name: is distinct
37+
count: 185361
38+
issue_link: https://github.com/ydb-platform/ydb/issues/7182
39+
issue_regexp: "^A_Expr_Kind unsupported value: 3$"
40+
example: SELECT 1 IS DISTINCT FROM 2
41+
- name: least
42+
count: 181588
43+
issue_link: https://github.com/ydb-platform/ydb/issues/7184
44+
issue_regexp: "^alternative is not implemented yet : 37$"
45+
example: select least(1,2)
46+
- name: Distributed randomly
47+
count: 147099
48+
tag:
49+
- greenplum
50+
issue_regexp:
51+
- 'ERROR: syntax error at or near "RANDOMLY"'
52+
- 'ERROR: syntax error at or near "DISTRIBUTED"'
53+
query_regexp:
54+
- (?i)DISTRIBUTED\s+RANDOMLY
55+
example: |
56+
(
57+
SELECT * FROM table
58+
)
59+
DISTRIBUTED RANDOMLY;
60+
- name: Support table alias in update
61+
count: 29307
62+
issue_link: https://github.com/ydb-platform/ydb/issues/7187
63+
issue_regexp: "alias is not supported"
64+
query_regexp: "(?is)UPDATE .* AS"
65+
example: UPDATE table AS t SET val=1;
66+
- name: unsupported agg_filter
67+
count: 9713
68+
issue_regexp: "FuncCall: unsupported agg_filter"
69+
issue_link: https://github.com/ydb-platform/ydb/issues/7181
70+
example: |-
71+
SELECT
72+
max(time) FILTER (WHERE code = 'example')
73+
FROM mytable
74+
- name: Execute prepared statement
75+
count: 8317
76+
issue_link: https://github.com/ydb-platform/ydb/issues/7191
77+
issue_regexp: "^RawStmt: alternative is not implemented yet : 234$"
78+
example: EXECUTE dumpAgg('123')
79+
- name: general parsing errors
80+
issue_regexp:
81+
- "Error while parsing query."
82+
skip: true
1883
- name: drop external table
1984
count: 2
2085
tag:
@@ -30,17 +95,8 @@ issues:
3095
issue_regexp:
3196
- '^RawStmt: alternative is not implemented yet : 277$'
3297
example: create table t as select 1
33-
- name: Distributed randomly
34-
count: 2
35-
tag:
36-
- greenplum
37-
issue_regexp:
38-
- 'ERROR: syntax error at or near "RANDOMLY"'
39-
- 'ERROR: syntax error at or near "DISTRIBUTED"'
40-
query_regexp:
41-
- (?i)DISTRIBUTED\s+RANDOMLY
4298
- name: Stored procedures
43-
count: 2
99+
count: 607374
44100
issue_regexp:
45101
- 'No such proc: '
46102
- name: Not supported set greenplum var
@@ -58,39 +114,32 @@ issues:
58114
count: 0
59115
issue_regexp:
60116
- Expected type cast node as is_local arg, but got node with tag
61-
- name: 'PG: InsertStmt: not supported onConflictClause'
62-
count: 0
63-
issue_regexp:
64-
- 'InsertStmt: not supported onConflictClause'
65-
- name: 'PG: RangeFunction: unsupported coldeflist'
66-
count: 0
67-
issue_regexp:
68-
- 'RangeFunction: unsupported coldeflist'
69117
- name: 'PG: Support NOT DISTINCT'
70-
count: 0
118+
count: 11
71119
issue_regexp:
72120
- 'A_Expr_Kind unsupported value: 4'
121+
example: SELECT 1 IS NOT DISTINCT FROM 2
73122
- name: 'PG: unrecognized configuration parameter'
74-
count: 0
123+
count: 1621022
75124
issue_regexp:
76125
- unrecognized configuration parameter
77126
- name: Call function from own schema
78-
count: 0
127+
count: 480183
79128
issue_regexp:
80129
- 'FuncCall: expected pg_catalog, but got: '
81-
- name: Generator functions in SELECT
82-
count: 0
83-
issue_regexp:
84-
- '^Generator functions are not allowed in: SELECT$'
85-
example: SELECT UNNEST($1)
86130
- name: Unimplemented Discard
87131
count: 0
88132
issue_regexp:
89133
- '^RawStmt: alternative is not implemented yet : 282$'
90134
example: DISCARD ALL
91135
- name: ANALYZE
92-
issue_regexp: "RawStmt: alternative is not implemented yet : 276"
93-
example: ANALYZE lc;
136+
count: 15071109
137+
issue_regexp:
138+
- "^RawStmt: alternative is not implemented yet : 220$"
139+
- "^RawStmt: alternative is not implemented yet : 276$"
140+
example: |
141+
ANALYZE lc;
142+
analyse q;
94143
- name: RESET var
95144
issue_regexp: "^VariableSetStmt, not supported kind: 4$"
96145
query_regexp: RESET ROLE
@@ -100,6 +149,3 @@ issues:
100149
- name: Lock table
101150
issue_regexp: "^RawStmt: alternative is not implemented yet : 289$"
102151
example: LOCK TABLE asd IN EXCLUSIVE MODE
103-
- name: table not found
104-
issue_regexp: Cannot find table
105-
print_issue_to_log: True

0 commit comments

Comments
 (0)