diff --git a/docs/compatibility/postgresql-18.md b/docs/compatibility/postgresql-18.md index b4e40a4..db8823f 100644 --- a/docs/compatibility/postgresql-18.md +++ b/docs/compatibility/postgresql-18.md @@ -1,7 +1,7 @@ # PostgreSQL 18 Compatibility -Generated: 2026-09-27T21:16:51Z -ParserSQL commit: `3a98211c2f45a20b93d2b067d3771d04547f90de` +Generated: 2026-11-18T04:23:05Z +ParserSQL commit: `7018f12fab540bb3e3489ebc4dd5c31756904a2f` libpg_query previous: `17-latest` `815abf77660ca3c38511e3f5af7777b31764c1d5` (PostgreSQL 17.7) libpg_query target: `18-latest` `9ab9951b7021adcc6d25d261d5016ca0b83726b8` (PostgreSQL 18.4) @@ -9,11 +9,11 @@ libpg_query target: `18-latest` `9ab9951b7021adcc6d25d261d5016ca0b83726b8` (Post | Result | Count | | --- | --- | -| DEEP_SUPPORTED | 49848 | +| DEEP_SUPPORTED | 49870 | | CLASSIFIED_ONLY | 0 | -| PARTIAL | 52 | -| ERROR | 1041 | -| TRAILING_INPUT | 377 | +| PARTIAL | 49 | +| ERROR | 1039 | +| TRAILING_INPUT | 360 | | TYPE_MISMATCH | 97 | ## PG18 Backlog @@ -708,7 +708,6 @@ libpg_query target: `18-latest` `9ab9951b7021adcc6d25d261d5016ca0b83726b8` (Post | ERROR | PG_QUERY__NODE__NODE_CREATE_PUBLICATION_STMT | fdbd82862a3f0a4b6962d85a | -- Firstly, test using the option publish='insert' because the row filter -- validation of referenced columns is less strict than for delete/update. CREATE PUBLICATION testpub5 FOR TABLE testpub_rf... | | ERROR | PG_QUERY__NODE__NODE_CREATE_STMT | 5f4d1d0616ac091ef967f76f | CREATE TABLE withoid() WITH (oids) | | ERROR | PG_QUERY__NODE__NODE_CREATE_STMT | 7bfbc8c3dfe3165c0366e675 | -- Specifying name only for a non-Boolean option should fail CREATE TABLE reloptions_test2(i INT) WITH (fillfactor) | -| ERROR | PG_QUERY__NODE__NODE_CREATE_STMT | b61f8504e316d3b54e162ab7 | create table 計算機用語 (用語 text, 分類コード varchar, 備考1Aだよ char(16)) | | ERROR | PG_QUERY__NODE__NODE_CREATE_STMT | e06e6ec92a7d3f86807488e6 | CREATE TEMP TABLE fktable2 (fk int references pktable ENFORCED NOT ENFORCED) | | ERROR | PG_QUERY__NODE__NODE_CREATE_SUBSCRIPTION_STMT | 07ebaa7b064e4b49306c6429 | -- fail - origin must be either none or any CREATE SUBSCRIPTION regress_testsub4 CONNECTION 'dbname=regress_doesnotexist' PUBLICATION testpub WITH (slot_name = NONE, connect = false, origin = foo) | | ERROR | PG_QUERY__NODE__NODE_CREATE_SUBSCRIPTION_STMT | 121e216e1ced684bb6b5e787 | CREATE SUBSCRIPTION regress_testsub CONNECTION 'dbname=regress_doesnotexist' PUBLICATION mypub WITH (connect = false, create_slot = false, copy_data = false) | @@ -803,7 +802,6 @@ libpg_query target: `18-latest` `9ab9951b7021adcc6d25d261d5016ca0b83726b8` (Post | ERROR | PG_QUERY__NODE__NODE_DROP_OWNED_STMT | f8ddd3dc2ffb90920444b936 | DROP OWNED BY regress_priv_user2, regress_priv_user2 | | ERROR | PG_QUERY__NODE__NODE_DROP_STMT | 1ab59e63bd4cde6462bcf518 | DROP TRANSFORM FOR foo LANGUAGE plperl | | ERROR | PG_QUERY__NODE__NODE_DROP_STMT | 1b2f581f479bf3faef7b4d28 | DROP CAST IF EXISTS (text AS text) | -| ERROR | PG_QUERY__NODE__NODE_DROP_STMT | 278ddd66feb40996ffba503e | drop table 計算機用語 | | ERROR | PG_QUERY__NODE__NODE_DROP_STMT | 30cf6055f9ac9d4430189971 | DROP CAST IF EXISTS (INTEGER AS no_such_schema.bar) | | ERROR | PG_QUERY__NODE__NODE_DROP_STMT | 3236b9d2f456af2c0422d786 | DROP CAST IF EXISTS (no_such_type1 AS INTEGER) | | ERROR | PG_QUERY__NODE__NODE_DROP_STMT | 375fea96bc4d54d717960f81 | DROP TRANSFORM IF EXISTS FOR hstore LANGUAGE plperl | @@ -838,8 +836,6 @@ libpg_query target: `18-latest` `9ab9951b7021adcc6d25d261d5016ca0b83726b8` (Post | ERROR | PG_QUERY__NODE__NODE_GRANT_STMT | 1ce6a6886b07bf48aea72ad1 | GRANT SELECT ON atest4 TO GROUP regress_priv_group1 WITH GRANT OPTION | | ERROR | PG_QUERY__NODE__NODE_GRANT_STMT | 404e1692abac21ef7902c0d7 | GRANT SELECT ON TABLE deptest TO GROUP regress_dep_group | | ERROR | PG_QUERY__NODE__NODE_GRANT_STMT | e14965f3b086b4843a21cd80 | GRANT DELETE ON atest3 TO GROUP regress_priv_group2 | -| ERROR | PG_QUERY__NODE__NODE_INDEX_STMT | ae845886aca7b8f1176c7801 | create index 計算機用語index2 on 計算機用語 using hash (分類コード) | -| ERROR | PG_QUERY__NODE__NODE_INDEX_STMT | b7c15dc007ada6fa77dd4d6e | create index 計算機用語index1 on 計算機用語 using btree (用語) | | ERROR | PG_QUERY__NODE__NODE_RENAME_STMT | 00c7d8ee48aacf49c76595ca | ALTER TABLESPACE regress_tblspace RENAME TO regress_tblspace_renamed | | ERROR | PG_QUERY__NODE__NODE_RENAME_STMT | 043de1fdd68ded7201e68ad0 | alter trigger parenttrig on parent rename to anothertrig | | ERROR | PG_QUERY__NODE__NODE_RENAME_STMT | 0651db681ffb0bce9d58f7aa | -- failed (name conflict) ALTER TEXT SEARCH PARSER alt_ts_prs1 RENAME TO alt_ts_prs3 | @@ -1029,16 +1025,18 @@ libpg_query target: `18-latest` `9ab9951b7021adcc6d25d261d5016ca0b83726b8` (Post | ERROR | PG_QUERY__NODE__NODE_VACUUM_STMT | 76951a3bc86863d0e59649f1 | -- Try ANALYZE ONLY with a column list ANALYZE ONLY vacparted(a,b) | | ERROR | PG_QUERY__NODE__NODE_VACUUM_STMT | 98e35171ec0c7f5ca3952c20 | -- Ensure only parent is analyzed ANALYZE ONLY only_inh_parent | | ERROR | PG_QUERY__NODE__NODE_VACUUM_STMT | b80cd6f58cdc7b0899fd60db | -- Ensure only the partitioned table is analyzed ANALYZE ONLY only_parted | -| ERROR | PG_QUERY__NODE__NODE_VACUUM_STMT | d000619583de4f04de5994cc | vacuum 計算機用語 | | ERROR | PG_QUERY__NODE__NODE_VACUUM_STMT | d6c97c0eaa46e6ac032287fc | ANALYZE (nonexistentarg) does_not_exit | | ERROR | PG_QUERY__NODE__NODE_VACUUM_STMT | f23eac5f2baa7393de3c7e95 | -- VACUUM ONLY on a partitioned table does nothing, ensure we get a warning. VACUUM ONLY vacparted | | ERROR | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 0160e03ddcd04c17585bb65d | SET LOCAL SESSION AUTHORIZATION DEFAULT | | ERROR | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 1ecabc22845de67696abbcf1 | -- SET SESSION AUTHORIZATION SET SESSION SESSION AUTHORIZATION DEFAULT | | ERROR | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 278202514ab9c9f1d0e03ba6 | SET LOCAL work_mem FROM CURRENT | +| ERROR | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 28405a5b75ac01fabec5cf3b | SET LOCAL TIME ZONE 'Australia/Sydney' | | ERROR | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 5f2c699c2e5356a309c452f9 | SET custom.my.qualified.guc = 'foo' | | ERROR | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 663d123df1d48c5423a418e2 | SET work_mem FROM CURRENT | | ERROR | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 9a3202425cde5cf0cea2b6ce | SET LOCAL SESSION AUTHORIZATION regress_seq_user | | ERROR | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | a57b18b744c2f48fedc760dd | SET LOCAL SESSION AUTHORIZATION 'regress_stat_set_1' | +| ERROR | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | d0c6c1770b30efe94cdf88ff | SET LOCAL TIME ZONE -8 | +| ERROR | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | ef6e0e1253c4a671d4228c3e | SET LOCAL TIME ZONE 'Europe/Paris' | | ERROR | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | efa1b85c4bda6d329cfe770a | SET LOCAL SESSION AUTHORIZATION 'regress_stat_set_2' | | ERROR | PG_QUERY__NODE__NODE_VIEW_STMT | 032d167d2c1239e9779571dc | CREATE VIEW pg_stats WITH (security_barrier) AS SELECT nspname AS schemaname, relname AS tablename, attname AS attname, stainherit AS inherited, stanullfrac AS null_frac, stawidth AS avg_width, sta... | | ERROR | PG_QUERY__NODE__NODE_VIEW_STMT | 0fc7df93738459f61f6dfb06 | CREATE VIEW my_property_secure WITH (security_barrier) AS SELECT * FROM customer WHERE name = current_user | @@ -1071,16 +1069,13 @@ libpg_query target: `18-latest` `9ab9951b7021adcc6d25d261d5016ca0b83726b8` (Post | PARTIAL | PG_QUERY__NODE__NODE_EXPLAIN_STMT | d0d86e169a6d9b5bc197cfad | explain (costs off) insert into insertconflicttest values(0, 'Crowberry') on conflict (key, fruit collate "C") do nothing | | PARTIAL | PG_QUERY__NODE__NODE_EXPLAIN_STMT | ddb84921f3cce2d9ec979c6a | explain (costs off) insert into insertconflicttest values(0, 'Crowberry') on conflict (fruit collate "C" text_pattern_ops, key) do nothing | | PARTIAL | PG_QUERY__NODE__NODE_INSERT_STMT | 0e687abaf19d83cc110cc8bf | insert into arr_pk_tbl(pk, f1[1:2]) values (1, '{6,7,8}') on conflict (pk) do update set f1[1] = excluded.f1[1], f1[2] = excluded.f1[2], f1[3] = excluded.f1[3] returning pk, f1 | -| PARTIAL | PG_QUERY__NODE__NODE_INSERT_STMT | 2852eccba6ac4adf3cb81068 | insert into 計算機用語 values('コンピュータグラフィックス','分B10中') | | PARTIAL | PG_QUERY__NODE__NODE_INSERT_STMT | 30f6d5a976bb0164926c8799 | insert into arr_pk_tbl(pk, f1[-2147483648:2147483647]) values (2, '{}') | | PARTIAL | PG_QUERY__NODE__NODE_INSERT_STMT | 5affd2fd3542393270d13056 | -- error, type mismatch INSERT INTO arrtest (b[1:2]) VALUES(now()) | | PARTIAL | PG_QUERY__NODE__NODE_INSERT_STMT | 5d7cdc942bb8b3784b0661b6 | INSERT INTO arrtest (a, b[1:2], c, d[1:2]) VALUES ('{}', '{3,4}', '{foo,bar}', '{bar,foo}') | | PARTIAL | PG_QUERY__NODE__NODE_INSERT_STMT | 5f685f584deb7838d72c3d65 | INSERT INTO arrtest2 VALUES( ARRAY[[[113,142],[1,147]]], ARRAY[1.1,1.2,1.3]::float8[], ARRAY[1.1,1.2,1.3], ARRAY[[['aaa','aab'],['aba','abb'],['aca','acb']],[['baa','bab'],['bba','bbb'],['bca','bcb... | -| PARTIAL | PG_QUERY__NODE__NODE_INSERT_STMT | 687a915c1b971b946a48da92 | insert into 計算機用語 values('コンピュータディスプレイ','機A01上') | | PARTIAL | PG_QUERY__NODE__NODE_INSERT_STMT | 92127ca4cb2e8ddb320b5fa5 | insert into arr_pk_tbl(pk, f1[0:2147483647]) values (2, '{}') | | PARTIAL | PG_QUERY__NODE__NODE_INSERT_STMT | b4f0e3c53b785e755144f064 | -- -- only the 'e' array is 0-based, the others are 1-based. -- INSERT INTO arrtest (a[1:5], b[1:1][1:2][1:2], c, d, f, g) VALUES ('{1,2,3,4,5}', '{{{0,0},{1,2}}}', '{}', '{}', '{}', '{}') | | PARTIAL | PG_QUERY__NODE__NODE_INSERT_STMT | bea89e870e0a098756d44fe6 | INSERT INTO arrtest (a, b[1:2][1:2], c, d, e, f, g) VALUES ('{11,12,23}', '{{3,4},{4,5}}', '{"foobar"}', '{{"elt1", "elt2"}}', '{"3.4", "6.7"}', '{"abc","abcde"}', '{"abc","abcde"}') | -| PARTIAL | PG_QUERY__NODE__NODE_INSERT_STMT | e2d63e3201f2cf3bef49b5f6 | insert into 計算機用語 values('コンピュータプログラマー','人Z01下') | | PARTIAL | PG_QUERY__NODE__NODE_INSERT_STMT | fff040341e4a1456c3de7ef8 | INSERT INTO onek_with_null(unique1, unique2) VALUES (NULL, -1), (NULL, 2_147_483_647), (NULL, NULL), (100, NULL), (500, NULL) | | PARTIAL | PG_QUERY__NODE__NODE_LOAD_STMT | 0f700b9e49ab23eebf123911 | LOAD 'plpgsql' | | PARTIAL | PG_QUERY__NODE__NODE_LOAD_STMT | 21b258d05f002025775286e8 | LOAD '$libdir/sepgsql' | @@ -1356,10 +1351,7 @@ libpg_query target: `18-latest` `9ab9951b7021adcc6d25d261d5016ca0b83726b8` (Post | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 11a104e822f3b438959bad62 | -- fail -- Appendrels excluded by constraints failed to check permissions in 8.4-9.2. select * from ((select a.q1 as x from int8_tbl a offset 0) union all (select b.q2 as x from int8_tbl b offset 0... | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 124c83969dc3db708742dacb | SELECT ARRAY[[1,2],[3,4]] \|\| ARRAY[5,6] AS "{{1,2},{3,4},{5,6}}" | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 18e7bdfe22cb1ae5584196ad | SELECT class, aa FROM a_star* x WHERE aa ISNULL | -| TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 1ae30f65b161516689dc9b07 | select *,character_length(用語) from 計算機用語 | -| TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 1d38c100426f015fbf060d09 | select * from 計算機用語 where 用語 ~* 'コンピュータ[デグ]' | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 1dfddd45b17864e9c109ab3e | select percentile_disc(array[[null,1,0.5],[0.75,0.25,null]]) within group (order by thousand) from tenk1 | -| TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 22af652eb3a84169f1363ad7 | select *,position('デ' in 用語) from 計算機用語 | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 2442b608284e5dff96ac99c7 | SELECT crypt('a very much longer text to encrypt. This one even stretches over more' 'than one line.', '$5$rounds=1400$anotherlongsaltstring') = '$5$rounds=1400$anotherlongsalts$Rx.j8H.h8HjEDGomFU8... | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 27b6ef8e1eab255381c3aa8e | SELECT pg_typeof(ARRAY[['a','bc'],['def','hijk']]::text[]::varchar[]) AS "character varying[]" | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 2c40c98f9d685e0fc642dbc1 | -- expressions SELECT t.f[1][3][1] AS "131", t.f[2][2][1] AS "221" FROM ( SELECT ARRAY[[[111,112],[121,122],[131,132]],[[211,212],[221,122],[231,232]]] AS f ) AS t | @@ -1406,13 +1398,11 @@ libpg_query target: `18-latest` `9ab9951b7021adcc6d25d261d5016ca0b83726b8` (Post | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 88af22bde7280c5f8a841f2e | SELECT sum(unique1) over (rows between unbounded.x preceding and unbounded.x following), unique1, four FROM tenk1, (values (1)) as unbounded(x) WHERE unique1 < 10 | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 8c7b68d96d6689c2118a5867 | SELECT sum(unique1) over (rows between unbounded(1) preceding and unbounded(1) following), unique1, four FROM tenk1 WHERE unique1 < 10 | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 8d87936ad471a0c232018b48 | SELECT * FROM test_type_conversion_array_timestamp(ARRAY[[['2016-09-21 15:34:24.078792-04','2016-10-22 11:34:24.078795-04',NULL], [NULL,'2016-10-21 11:34:25.078792-04','2016-10-21 11:34:24.098792-0... | -| TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 8f446acafba8601f238956f3 | select * from 計算機用語 where 分類コード like '_Z%' | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 8f57590d909393200501cff4 | select armor('', array[['']], array['foo']) | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 93e151090ea311d21652e606 | SELECT (timestamp without time zone '2000-11-27', interval '12 hours') OVERLAPS (timestamp without time zone '2000-11-27', interval '12 hours') AS "True" | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 955088e13b194a4b55241f30 | select * from iboolpart where a is unknown | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 971f16c75af88b76ccb1715b | SELECT array_sort(ARRAY[[2,4],[2,1],[6,5]]) | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 98a6db81538e2cbd127226cb | SELECT test_slru_page_delete(0x1234500000030) | -| TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 99aa9b1fedd8e79b004e38dc | select * from 計算機用語 where 分類コード ~* '人z01下' | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 9bdcf352eb002ddcb537e16b | SELECT ARRAY[[['hello','world']]] \|\| ARRAY[[['happy','birthday']]] AS "ARRAY" | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 9c4d3622c89385831388bb96 | SELECT test_slru_page_sync(0x1234500000030) | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 9c592518d7e3dd8c18b69eb7 | select plperl_sum_array(ARRAY[[[[[[1,2],[3,4]],[[5,6],[7,8]]],[[[9,10],[11,12]], [[13,14],[15,16]]]], [[[[17,18],[19,20]],[[21,22],[23,24]]],[[[25,26],[27,28]],[[29,30],[31,32]]]]], [[[[[1,2],[3,4]... | @@ -1422,7 +1412,6 @@ libpg_query target: `18-latest` `9ab9951b7021adcc6d25d261d5016ca0b83726b8` (Post | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | a83b390a6cd79d36de5bb959 | SELECT array_position(ARRAY[[1,2],[3,4]], 3) | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | a9f19d05e1f0812ad4c2e6ad | select armor('', array['foo'], array[['']]) | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | acc3666c61ed6d8c539c7f42 | select * from boolpart where a is not unknown | -| TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | af6390317ba0d7d8854d07a7 | select *,substring(用語 from 10 for 4) from 計算機用語 | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | b0df8d41cbcff2d401ba7e0c | SELECT (time '00:00', interval '1 hour') OVERLAPS (time '00:30', interval '1 hour') AS "True" | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | b2acdf3245205205eef95ec7 | SELECT * FROM test_type_conversion_array_int4(ARRAY[[[1,2,NULL],[NULL,5,6]],[[NULL,8,9],[10,11,12]]]) | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | b4b6be0d1fbf0563c34e78a0 | SELECT (timestamp with time zone '2000-11-27', interval '12 hours') OVERLAPS (timestamp with time zone '2000-11-27 12:00', timestamp with time zone '2000-11-30') AS "False" | @@ -1441,30 +1430,19 @@ libpg_query target: `18-latest` `9ab9951b7021adcc6d25d261d5016ca0b83726b8` (Post | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | cc2fd50309421bf428d2c7e6 | select ARRAY[['a','g'],['b','h'],['asd','i']]::hstore | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | cdd78a1079eec9bd1c5d1820 | SELECT test_slru_page_read(0x1234500000000) | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | ce4a58bc619730a331fd5ee1 | SELECT test_slru_page_read(0x1234500000020, true) | -| TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | ce7da3e2130168aef6c19eb9 | select *,octet_length(用語) from 計算機用語 | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | d62cf5861378a25986f295cf | select ARRAY[[['a','g'],['b','h'],['asd','i']]]::hstore | -| TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | d8a215ade168c188f2a65818 | select * from 計算機用語 | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | da0953de0f290c0c5ff878f3 | select 'a=>1 , b=>2, c=>3'::hstore - ARRAY[['b'],['c'],['a']] | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | db452239909bdc3706c0f824 | SELECT test_slru_page_readonly(0x1234500000001) | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | dc58656c9ced960c942fe400 | SELECT (timestamp without time zone '2000-11-26', timestamp without time zone '2000-11-27') OVERLAPS (timestamp without time zone '2000-11-27 12:00', timestamp without time zone '2000-11-30') AS "F... | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | e5cb740a5fb0dd7a06b48b9b | select foreach_test(ARRAY[[1,2],[3,4]]) | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | e6e93483e876328ed351cdbe | SELECT * FROM test_type_conversion_array_date(ARRAY[[['2016-09-21','2016-09-22',NULL],[NULL,'2016-10-21','2016-10-22']], [[NULL,'2016-11-21','2016-10-21'],['2015-09-21','2015-09-22','2014-09-21']]]... | -| TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | ef06fdedf511011e4a3f3d66 | select * from 計算機用語 where 用語 ~ 'コンピュータ[デグ]' | -| TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | f3456f7f77637b07a7bb3fe4 | select * from 計算機用語 where 分類コード like '_Z01_' | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | f83f7887c4a67039ccecf1e9 | select 'aa=>1, c=>3, b=>2, d=>4'::hstore -> ARRAY[['b','d'],['aa','c']] | -| TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | fa7c7d692b7dd19ceddcaaec | select * from 計算機用語 where 分類コード = '人Z01下' | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | fadd5c83de9605fea9e56bd6 | SELECT ARRAY[['a','bc'],['def','hijk']]::text[]::varchar[] AS "{{a,bc},{def,hijk}}" | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | fb39079244ed9893a307016e | SELECT * FROM test_type_conversion_array_text(ARRAY[['foo', 'bar'],['foo2', 'bar2']]) | | TRAILING_INPUT | PG_QUERY__NODE__NODE_UPDATE_STMT | 25c3493c48cbec2eaf1733a1 | -- let attribute a differ (must be done on rtest_t1 - see above) update rtest_t1 set a = a + 10 where b isnull | -| TRAILING_INPUT | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 108241523c8781dfd555b9bd | SET TRANSACTION SNAPSHOT 'Incorrect Identifier' | -| TRAILING_INPUT | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 2883046f1e58bfa966e2f29d | SET SESSION CHARACTERISTICS AS TRANSACTION READ ONLY, READ ONLY | | TRAILING_INPUT | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 6d7cda546bc9e1ce8a44d90f | SET XML OPTION CONTENT | | TRAILING_INPUT | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 763b75d9edeab280716214d2 | -- SET XML OPTION SET XML OPTION DOCUMENT | -| TRAILING_INPUT | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | b9ecaa55eb680ad640b74111 | SET TRANSACTION ISOLATION LEVEL SERIALIZABLE, READ ONLY, DEFERRABLE | -| TRAILING_INPUT | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | bf92167628b07677b6aa8424 | SET LOCAL search_path = ctl_schema, public | | TRAILING_INPUT | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | d389de9fe57465b653789229 | SET LOCAL TIME ZONE 10.5 | -| TRAILING_INPUT | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | e1356d14e97ce520c935bed8 | SET TRANSACTION SNAPSHOT 'FFF-FFF-F' | -| TRAILING_INPUT | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | f8df4d44e2f17213c6326e62 | SET SESSION CHARACTERISTICS AS TRANSACTION READ ONLY, READ WRITE | | TRAILING_INPUT | PG_QUERY__NODE__NODE_VARIABLE_SHOW_STMT | 0cac682a12cc29708e469913 | SHOW transaction_deferrable | | TRAILING_INPUT | PG_QUERY__NODE__NODE_VARIABLE_SHOW_STMT | 21c69acd774ac99411761799 | -- passes with role member of pg_read_all_settings SHOW session_preload_libraries | | TRAILING_INPUT | PG_QUERY__NODE__NODE_VARIABLE_SHOW_STMT | 309c3d6eb5ed49ffb65d0ba1 | SHOW TIME ZONE | @@ -4979,6 +4957,7 @@ libpg_query target: `18-latest` `9ab9951b7021adcc6d25d261d5016ca0b83726b8` (Post | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 1e506dba60cd562bbe233ba6 | SET check_function_bodies TO off | | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 1e6cd580437a60964d67e269 | -- Special cases. Keep these ones at the end to avoid conflicts. SET SCHEMA 'foo' | | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 26d5e8213809a66e75f85b0f | -- Check that the Hash Join bucket size estimator detects equal clauses correctly. SET enable_nestloop = 'off' | +| DEEP_SUPPORTED | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 2883046f1e58bfa966e2f29d | SET SESSION CHARACTERISTICS AS TRANSACTION READ ONLY, READ ONLY | | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 3076b5a0d6759fccad99f93d | set constraint_exclusion to on | | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 316ad88daed44ffecc49b9dc | -- Temporary schema SET search_path = 'pg_temp' | | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 3419ea41ce1ad5cd04378e9d | SET track_activities = off | @@ -5032,6 +5011,7 @@ libpg_query target: `18-latest` `9ab9951b7021adcc6d25d261d5016ca0b83726b8` (Post | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | f25d4689a2aff455faca7a37 | SET pgcrypto.builtin_crypto_enabled = off | | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | f4305aeb77ad7a28b29d54eb | set local enable_hashagg = off | | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | f5d3e908ca015a0cec81679b | -- from timezone_abbreviations SET timezone = 'America/Montevideo' | +| DEEP_SUPPORTED | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | f8df4d44e2f17213c6326e62 | SET SESSION CHARACTERISTICS AS TRANSACTION READ ONLY, READ WRITE | | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | fc56a3ee91dc23d55af2573b | set local enable_bitmapscan = off | | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_VIEW_STMT | 014f15d121ce8b14a254d3fc | CREATE VIEW pg_shmem_allocations_numa AS SELECT * FROM pg_get_shmem_allocations_numa() | | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_VIEW_STMT | 0534b45ad8db4e617d9c0851 | CREATE VIEW pg_replication_slots AS SELECT L.slot_name, L.plugin, L.slot_type, L.datoid, D.datname AS database, L.temporary, L.active, L.active_pid, L.xmin, L.catalog_xmin, L.restart_lsn, L.confirm... | @@ -5142,8 +5122,6 @@ libpg_query target: `18-latest` `9ab9951b7021adcc6d25d261d5016ca0b83726b8` (Post | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 4414b8358396adc3491bb8e9 | SELECT crypt('a very much longer text to encrypt. This one even stretches over more' 'than one line.', '$6$rounds=1400$anotherlongsaltstring') = '$6$rounds=1400$anotherlongsalts$POfYwTEok97VWcjxIiS... | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | 971f16c75af88b76ccb1715b | SELECT array_sort(ARRAY[[2,4],[2,1],[6,5]]) | | TRAILING_INPUT | PG_QUERY__NODE__NODE_SELECT_STMT | c1850a2d38c3fca98271de6a | SELECT proname, proargtypes, pronamespace FROM pg_proc WHERE (proname, pronamespace) < ('abs', 1_000_000) ORDER BY proname DESC, proargtypes DESC, pronamespace DESC LIMIT 1 | -| TRAILING_INPUT | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 2883046f1e58bfa966e2f29d | SET SESSION CHARACTERISTICS AS TRANSACTION READ ONLY, READ ONLY | -| TRAILING_INPUT | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | f8df4d44e2f17213c6326e62 | SET SESSION CHARACTERISTICS AS TRANSACTION READ ONLY, READ WRITE | | TRAILING_INPUT | PG_QUERY__NODE__NODE_VARIABLE_SHOW_STMT | 6b6c8b3bbddfd97dd05a27b4 | SHOW isn.weak | | TYPE_MISMATCH | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 096f4b0b73310691abeadfe7 | reset rls_test.blah | | TYPE_MISMATCH | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 3747b884a086d1d9ec428b7d | RESET vacuum_truncate | @@ -5158,15 +5136,33 @@ libpg_query target: `18-latest` `9ab9951b7021adcc6d25d261d5016ca0b83726b8` (Post | Previous | Current | Oracle Node | ID | SQL | | --- | --- | --- | --- | --- | -| ERROR | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_TRANSACTION_STMT | 33873c0047519609077c6129 | ROLLBACK TO SAVEPOINT settings | -| ERROR | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_TRANSACTION_STMT | a1c8abfcfd392c7ee858a9d6 | rollback to settings | -| ERROR | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_TRANSACTION_STMT | cdb9707dbd061211f6b2e580 | savepoint settings | +| TRAILING_INPUT | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_SELECT_STMT | 1ae30f65b161516689dc9b07 | select *,character_length(用語) from 計算機用語 | +| TRAILING_INPUT | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_SELECT_STMT | 1d38c100426f015fbf060d09 | select * from 計算機用語 where 用語 ~* 'コンピュータ[デグ]' | +| TRAILING_INPUT | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_SELECT_STMT | 22af652eb3a84169f1363ad7 | select *,position('デ' in 用語) from 計算機用語 | +| ERROR | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_DROP_STMT | 278ddd66feb40996ffba503e | drop table 計算機用語 | +| PARTIAL | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_INSERT_STMT | 2852eccba6ac4adf3cb81068 | insert into 計算機用語 values('コンピュータグラフィックス','分B10中') | +| PARTIAL | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_INSERT_STMT | 687a915c1b971b946a48da92 | insert into 計算機用語 values('コンピュータディスプレイ','機A01上') | +| TRAILING_INPUT | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_SELECT_STMT | 8f446acafba8601f238956f3 | select * from 計算機用語 where 分類コード like '_Z%' | +| TRAILING_INPUT | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_SELECT_STMT | 99aa9b1fedd8e79b004e38dc | select * from 計算機用語 where 分類コード ~* '人z01下' | +| ERROR | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_INDEX_STMT | ae845886aca7b8f1176c7801 | create index 計算機用語index2 on 計算機用語 using hash (分類コード) | +| TRAILING_INPUT | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_SELECT_STMT | af6390317ba0d7d8854d07a7 | select *,substring(用語 from 10 for 4) from 計算機用語 | +| ERROR | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_CREATE_STMT | b61f8504e316d3b54e162ab7 | create table 計算機用語 (用語 text, 分類コード varchar, 備考1Aだよ char(16)) | +| ERROR | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_INDEX_STMT | b7c15dc007ada6fa77dd4d6e | create index 計算機用語index1 on 計算機用語 using btree (用語) | +| TRAILING_INPUT | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_SELECT_STMT | ce7da3e2130168aef6c19eb9 | select *,octet_length(用語) from 計算機用語 | +| ERROR | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_VACUUM_STMT | d000619583de4f04de5994cc | vacuum 計算機用語 | +| TRAILING_INPUT | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_SELECT_STMT | d8a215ade168c188f2a65818 | select * from 計算機用語 | +| PARTIAL | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_INSERT_STMT | e2d63e3201f2cf3bef49b5f6 | insert into 計算機用語 values('コンピュータプログラマー','人Z01下') | +| TRAILING_INPUT | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_SELECT_STMT | ef06fdedf511011e4a3f3d66 | select * from 計算機用語 where 用語 ~ 'コンピュータ[デグ]' | +| TRAILING_INPUT | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_SELECT_STMT | f3456f7f77637b07a7bb3fe4 | select * from 計算機用語 where 分類コード like '_Z01_' | +| TRAILING_INPUT | DEEP_SUPPORTED | PG_QUERY__NODE__NODE_SELECT_STMT | fa7c7d692b7dd19ceddcaaec | select * from 計算機用語 where 分類コード = '人Z01下' | ## Regressed Baseline Transitions | Previous | Current | Oracle Node | ID | SQL | | --- | --- | --- | --- | --- | -| - | - | - | - | - | +| DEEP_SUPPORTED | ERROR | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | 28405a5b75ac01fabec5cf3b | SET LOCAL TIME ZONE 'Australia/Sydney' | +| DEEP_SUPPORTED | ERROR | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | d0c6c1770b30efe94cdf88ff | SET LOCAL TIME ZONE -8 | +| DEEP_SUPPORTED | ERROR | PG_QUERY__NODE__NODE_VARIABLE_SET_STMT | ef6e0e1253c4a671d4228c3e | SET LOCAL TIME ZONE 'Europe/Paris' | ## Structural Feature Witness Links diff --git a/include/sql_parser/compound_query_parser.h b/include/sql_parser/compound_query_parser.h index 3e46449..9ce2ff4 100644 --- a/include/sql_parser/compound_query_parser.h +++ b/include/sql_parser/compound_query_parser.h @@ -24,6 +24,8 @@ class CompoundQueryParser { // The classifier normally consumes SELECT. Pass the consumed keyword for // TABLE/VALUES/'(', or TK_EOF to start at an unconsumed query operand. AstNode* parse(TokenType first = TokenType::TK_SELECT) { + ParseDepthGuard depth(tok_); + if (!depth) return nullptr; const bool require_operands = require_complete_operands_ || first == TokenType::TK_VALUES || first == TokenType::TK_TABLE; AstNode* result = parse_compound_expr(0, first); diff --git a/include/sql_parser/expression_parser.h b/include/sql_parser/expression_parser.h index ceb71ce..2635de4 100644 --- a/include/sql_parser/expression_parser.h +++ b/include/sql_parser/expression_parser.h @@ -261,6 +261,8 @@ class ExpressionParser { // Parse an expression with minimum precedence 0 AstNode* parse(Precedence min_prec = Precedence::NONE) { + ParseDepthGuard depth(tok_); + if (!depth) return nullptr; // b_expr restrictions apply to this operator chain; parenthesized // expressions and function arguments parsed by the atom remain a_expr. bool restricted = json_xml_restricted_; @@ -483,6 +485,30 @@ class ExpressionParser { Token t = tok_.peek(); if constexpr (D == Dialect::MySQL) { if (mysql_charset_introducer(t)) return parse_mysql_charset_literal(); + if (keyword(t, "DATE") || keyword(t, "TIME") || keyword(t, "TIMESTAMP") || + keyword(t, "N") || keyword(t, "BINARY")) { + auto look = tok_; + look.skip(); + Token next = look.peek(); + const bool temporal = keyword(t, "DATE") || keyword(t, "TIME") || + keyword(t, "TIMESTAMP"); + const bool national = keyword(t, "N") && next.type == TokenType::TK_STRING && + t.source.ptr + t.source.len == next.source.ptr && next.source.ptr[0] == '\''; + const bool binary = keyword(t, "BINARY") && + ((mysql_identifier_word(next) && next.type != TokenType::TK_AS) || + next.type == TokenType::TK_STRING || + next.type == TokenType::TK_INTEGER || next.type == TokenType::TK_FLOAT || + next.type == TokenType::TK_HEX_LITERAL || next.type == TokenType::TK_BIT_LITERAL || + next.type == TokenType::TK_LPAREN || next.type == TokenType::TK_PLUS || + next.type == TokenType::TK_MINUS || next.type == TokenType::TK_TILDE || + next.type == TokenType::TK_EXCLAIM || next.type == TokenType::TK_QUESTION || + next.type == TokenType::TK_USER_VARIABLE || next.type == TokenType::TK_DOUBLE_AT || + next.type == TokenType::TK_NULL || next.type == TokenType::TK_TRUE || + next.type == TokenType::TK_FALSE || next.type == TokenType::TK_CASE || + next.type == TokenType::TK_INTERVAL || next.type == TokenType::TK_NOT); + if ((temporal && next.type == TokenType::TK_STRING) || national || binary) + return syntax_error(); + } } if constexpr (D == Dialect::PostgreSQL) { if ((t.type == TokenType::TK_IDENTIFIER || t.type == TokenType::TK_INTERVAL) && @@ -1467,6 +1493,8 @@ class ExpressionParser { } if constexpr (D == Dialect::MySQL) { if (type == TokenType::TK_COLLATE) return Precedence::POSTFIX; + if (type == TokenType::TK_MYSQL_NULL_SAFE_EQUAL) return Precedence::COMPARISON; + if (type == TokenType::TK_MYSQL_LOGICAL_AND) return Precedence::AND; } switch (type) { case TokenType::TK_OR: return Precedence::OR; diff --git a/include/sql_parser/parse_result.h b/include/sql_parser/parse_result.h index 796be3b..6c31cf7 100644 --- a/include/sql_parser/parse_result.h +++ b/include/sql_parser/parse_result.h @@ -42,6 +42,8 @@ struct ParseResult { StringRef remaining; bool full_input = false; bool has_user_variables = false; + bool has_executable_comments = false; + bool has_comments = false; // Recognized comments, including optimizer hints. StringRef table_name; StringRef schema_name; diff --git a/include/sql_parser/parser.h b/include/sql_parser/parser.h index 61d6a50..aefea73 100644 --- a/include/sql_parser/parser.h +++ b/include/sql_parser/parser.h @@ -15,6 +15,7 @@ struct ParserConfig { size_t arena_block_size = 65536; // 64KB size_t arena_max_size = 1048576; // 1MB size_t stmt_cache_capacity = 128; + size_t max_parse_depth = 128; // Capped at 128 to bound recursive parser stack use. }; template diff --git a/include/sql_parser/pg_integer_literal.h b/include/sql_parser/pg_integer_literal.h index dd241b5..b5b7b81 100644 --- a/include/sql_parser/pg_integer_literal.h +++ b/include/sql_parser/pg_integer_literal.h @@ -15,7 +15,8 @@ inline bool pg_integer_literal(Tokenizer& tok, Token& resul look.skip(); Token suffix = look.peek(); char next = suffix.source.len ? suffix.source.ptr[0] : '\0'; - bool word_suffix = (next >= 'a' && next <= 'z') || (next >= 'A' && next <= 'Z') || next == '_'; + bool word_suffix = (next >= 'a' && next <= 'z') || (next >= 'A' && next <= 'Z') || next == '_' || + static_cast(next) >= 0x80; bool joined = suffix.source.ptr == first.source.ptr + first.source.len && word_suffix; uint32_t length = first.source.len + (joined ? suffix.source.len : 0); const char* text = first.source.ptr; diff --git a/include/sql_parser/select_parser.h b/include/sql_parser/select_parser.h index 9ea6c69..9145016 100644 --- a/include/sql_parser/select_parser.h +++ b/include/sql_parser/select_parser.h @@ -43,7 +43,7 @@ class SelectParser { } } - // SELECT options: DISTINCT, ALL, SQL_CALC_FOUND_ROWS + // SELECT options precede the select item list. AstNode* opts = parse_select_options(); if (opts) root->add_child(opts); @@ -189,6 +189,18 @@ class SelectParser { } } opts->add_child(make_node(arena_, NodeType::NODE_IDENTIFIER, ExpressionParser::canonical_keyword(t))); + } else if (D == Dialect::MySQL && + (ExpressionParser::keyword(t, "HIGH_PRIORITY") || + ExpressionParser::keyword(t, "STRAIGHT_JOIN") || + ExpressionParser::keyword(t, "SQL_SMALL_RESULT") || + ExpressionParser::keyword(t, "SQL_BIG_RESULT") || + ExpressionParser::keyword(t, "SQL_BUFFER_RESULT") || + ExpressionParser::keyword(t, "SQL_CACHE") || + ExpressionParser::keyword(t, "SQL_NO_CACHE") || + ExpressionParser::keyword(t, "DISTINCTROW"))) { + if (!opts) opts = make_node(arena_, NodeType::NODE_SELECT_OPTIONS); + tok_.skip(); + opts->add_child(make_node(arena_, NodeType::NODE_IDENTIFIER, t.source)); } else if (t.type == TokenType::TK_SQL_CALC_FOUND_ROWS) { if (!opts) opts = make_node(arena_, NodeType::NODE_SELECT_OPTIONS); tok_.skip(); @@ -244,8 +256,11 @@ class SelectParser { AstNode* item = make_node(arena_, NodeType::NODE_SELECT_ITEM); if (!item) return nullptr; + const char* expression_start = tok_.peek().source.ptr; AstNode* expr = expr_parser_.parse(); if (!expr) return nullptr; + // Original expression spelling; like other source refs, input must outlive the AST. + item->set_source({expression_start, static_cast(tok_.consumed_token_end() - expression_start)}); // Check for * EXCEPT(...) or * REPLACE(...) bool is_star = (expr->type == NodeType::NODE_ASTERISK); diff --git a/include/sql_parser/token.h b/include/sql_parser/token.h index 4483ed1..bf15a97 100644 --- a/include/sql_parser/token.h +++ b/include/sql_parser/token.h @@ -137,6 +137,8 @@ enum class TokenType : uint16_t { TK_NAMED_ARGUMENT, // =>, reserved for PostgreSQL named function arguments TK_MYSQL_JSON_ARROW, // -> and ->>; spelling distinguishes unquoting TK_MYSQL_OPTIMIZER_HINT, // complete comment in a native hint position + TK_MYSQL_NULL_SAFE_EQUAL, + TK_MYSQL_LOGICAL_AND, }; struct Token { diff --git a/include/sql_parser/tokenizer.h b/include/sql_parser/tokenizer.h index 9e2456f..c837a3a 100644 --- a/include/sql_parser/tokenizer.h +++ b/include/sql_parser/tokenizer.h @@ -13,18 +13,38 @@ class Tokenizer { void reset(const char* input, size_t len) { start_ = input; cursor_ = input; + consumed_token_end_ = input; end_ = input + len; has_peeked_ = false; has_error_ = false; has_fatal_error_ = false; has_user_variables_ = false; + has_executable_comments_ = false; + has_comments_ = false; hint_allowed_ = false; after_dot_ = false; + parse_depth_ = 0; + parse_depth_exceeded_ = false; paren_depth_ = 0; first_open_paren_ = nullptr; error_source_ = {}; } + // Shared by expression and query parsers using this tokenizer. Lookahead + // copies retain a snapshot; parsing continues on the original tokenizer. + void set_max_parse_depth(size_t depth) { max_parse_depth_ = depth < 128 ? depth : 128; } + bool enter_parse() { + if (parse_depth_ >= max_parse_depth_) { + parse_depth_exceeded_ = true; + flag_fatal_error_at(peek().source); + return false; + } + ++parse_depth_; + return true; + } + void leave_parse() { --parse_depth_; } + bool parse_depth_exceeded() const { return parse_depth_exceeded_; } + // True iff the tokenizer has emitted at least one TK_ERROR token since // the last reset(). Lets callers distinguish "couldn't build an AST" // from "the input was syntactically invalid" and surface the latter @@ -32,6 +52,12 @@ class Tokenizer { bool has_error() const { return has_error_; } bool has_fatal_error() const { return has_fatal_error_; } bool has_user_variables() const { return has_user_variables_; } + bool has_executable_comments() const { return has_executable_comments_; } + // Sticky since reset, including optimizer hints and executable comments. + bool has_comments() const { return has_comments_; } + // End of the last consumed token, or input_begin() before any consumption. + // Peeking and consuming EOF do not change this boundary. + const char* consumed_token_end() const { return consumed_token_end_; } StringRef error_source() const { return error_source_; } // Hook for parser-level (non-tokenizer) errors -- when the parser @@ -49,11 +75,16 @@ class Tokenizer { } Token next_token() { + Token token; if (has_peeked_) { has_peeked_ = false; - return peeked_; + token = peeked_; + } else { + token = scan_token(); } - return scan_token(); + if (token.type != TokenType::TK_EOF) + consumed_token_end_ = token.source.ptr + token.source.len; + return token; } Token peek() { @@ -64,13 +95,7 @@ class Tokenizer { return peeked_; } - void skip() { - if (has_peeked_) { - has_peeked_ = false; - } else { - scan_token(); - } - } + void skip() { (void)next_token(); } // Expose start/end of input for remaining-input calculation and for // safe lookback (e.g. detecting whether an identifier token was source- @@ -81,6 +106,7 @@ class Tokenizer { private: const char* start_ = nullptr; const char* cursor_ = nullptr; + const char* consumed_token_end_ = nullptr; const char* end_ = nullptr; Token peeked_; bool has_peeked_ = false; @@ -89,6 +115,11 @@ class Tokenizer { bool has_error_ = false; bool has_fatal_error_ = false; bool has_user_variables_ = false; + bool has_executable_comments_ = false; + bool has_comments_ = false; + bool parse_depth_exceeded_ = false; + size_t parse_depth_ = 0; + size_t max_parse_depth_ = 128; uint32_t paren_depth_ = 0; const char* first_open_paren_ = nullptr; StringRef error_source_; @@ -126,6 +157,7 @@ class Tokenizer { (static_cast(peek_char(2)) <= 0x20 || static_cast(peek_char(2)) == 0x7f))); if (dash_comment) { + has_comments_ = true; hint_allowed_ = false; cursor_ += 2; while (cursor_ < end_ && *cursor_ != '\n') ++cursor_; @@ -135,6 +167,7 @@ class Tokenizer { // # line comment (MySQL only) if constexpr (D == Dialect::MySQL) { if (c == '#') { + has_comments_ = true; hint_allowed_ = false; ++cursor_; while (cursor_ < end_ && *cursor_ != '\n') ++cursor_; @@ -144,6 +177,7 @@ class Tokenizer { // /* block comment */ if (c == '/' && peek_char(1) == '*') { + has_comments_ = true; if constexpr (D == Dialect::MySQL) { if (hint_allowed_ && peek_char(2) == '+') return; } @@ -173,6 +207,7 @@ class Tokenizer { const bool executable = cursor_ < end_ && (*cursor_ == '!' || (cursor_ + 1 < end_ && cursor_[0] == 'M' && cursor_[1] == '!')); + if (executable) has_executable_comments_ = true; bool has_user_variable_marker = false; bool closed = false; while (cursor_ < end_) { @@ -236,10 +271,39 @@ class Tokenizer { static_cast(source_start - start_)}; } + // Validate one UTF-8 scalar without reading past the input. High bytes + // participate in identifiers; do not split a name into ASCII keyword tokens. + size_t utf8_identifier_char_length(const char* p) const { + const size_t left = static_cast(end_ - p); + const auto c = static_cast(*p); + size_t n = c >= 0xc2 && c <= 0xdf ? 2 : + c >= 0xe0 && c <= 0xef ? 3 : + c >= 0xf0 && c <= 0xf4 ? 4 : 0; + if (n == 0 || left < n) return 0; + for (size_t i = 1; i < n; ++i) { + const auto b = static_cast(p[i]); + if (b < 0x80 || b > 0xbf) return 0; + } + const auto second = static_cast(p[1]); + if ((c == 0xe0 && second < 0xa0) || (c == 0xed && second >= 0xa0) || + (c == 0xf0 && second < 0x90) || (c == 0xf4 && second >= 0x90)) return 0; + return n; + } + Token scan_identifier_or_keyword() { const char* start = cursor_; while (cursor_ < end_) { char c = *cursor_; + if (static_cast(c) >= 0x80) { + const size_t n = utf8_identifier_char_length(cursor_); + if (n == 0) { + ++cursor_; + return make_token(TokenType::TK_ERROR, start, + static_cast(cursor_ - start)); + } + cursor_ += n; + continue; + } bool is_cont = (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '_'; // PostgreSQL allows `$` as an identifier continuation char (but @@ -613,7 +677,8 @@ class Tokenizer { } // Identifiers and keywords - if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '_') { + if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '_' || + static_cast(c) >= 0x80) { return scan_identifier_or_keyword(); } @@ -705,6 +770,16 @@ class Tokenizer { char c2 = peek_char(1); if constexpr (D == Dialect::MySQL) { + if (c == '<' && c2 == '=' && peek_char(2) == '>') { + const char* start = cursor_; + cursor_ += 3; + return make_token(TokenType::TK_MYSQL_NULL_SAFE_EQUAL, start, 3); + } + if (c == '&' && c2 == '&') { + const char* start = cursor_; + cursor_ += 2; + return make_token(TokenType::TK_MYSQL_LOGICAL_AND, start, 2); + } if (c == '-' && c2 == '>') { const char* start = cursor_; cursor_ += 2; @@ -761,6 +836,20 @@ class Tokenizer { } }; +template +class ParseDepthGuard { +public: + explicit ParseDepthGuard(Tokenizer& tokenizer) + : tokenizer_(tokenizer), entered_(tokenizer.enter_parse()) {} + ~ParseDepthGuard() { if (entered_) tokenizer_.leave_parse(); } + explicit operator bool() const { return entered_; } + ParseDepthGuard(const ParseDepthGuard&) = delete; + ParseDepthGuard& operator=(const ParseDepthGuard&) = delete; +private: + Tokenizer& tokenizer_; + bool entered_; +}; + } // namespace sql_parser #endif // SQL_PARSER_TOKENIZER_H diff --git a/src/sql_parser/parser.cpp b/src/sql_parser/parser.cpp index 6ad9af3..721c131 100644 --- a/src/sql_parser/parser.cpp +++ b/src/sql_parser/parser.cpp @@ -20,7 +20,9 @@ namespace sql_parser { template Parser::Parser(const ParserConfig& config) : arena_(config.arena_block_size, config.arena_max_size), - stmt_cache_(config.stmt_cache_capacity) {} + stmt_cache_(config.stmt_cache_capacity) { + tokenizer_.set_max_parse_depth(config.max_parse_depth); +} template void Parser::reset() { @@ -36,15 +38,21 @@ ParseResult Parser::parse(const char* sql, size_t len) { return result; } bool has_user_variables = false; - if constexpr (D == Dialect::MySQL) { + bool has_executable_comments = false; + bool has_comments = false; + { Tokenizer detector; detector.reset(sql, len); while (detector.next_token().type != TokenType::TK_EOF) {} has_user_variables = detector.has_user_variables(); + has_executable_comments = detector.has_executable_comments(); + has_comments = detector.has_comments(); } tokenizer_.reset(sql, len); ParseResult result = classify_and_dispatch(); result.has_user_variables = has_user_variables || tokenizer_.has_user_variables(); + result.has_executable_comments = has_executable_comments || tokenizer_.has_executable_comments(); + result.has_comments = has_comments || tokenizer_.has_comments(); return result; } @@ -63,6 +71,23 @@ BatchParseResult Parser::parse_all(const char* sql, size_t len) { Tokenizer scanner; scanner.reset(sql + cursor, len - cursor); Token first = scanner.next_token(); + if ((first.type == TokenType::TK_SEMICOLON || first.type == TokenType::TK_EOF) && + scanner.has_executable_comments()) { + const char* end = first.type == TokenType::TK_SEMICOLON + ? first.source.ptr + first.source.len : sql + len; + ParsedStatement statement; + statement.offset = static_cast(cursor); + statement.source = StringRef{sql + cursor, static_cast(end - (sql + cursor))}; + statement.result.status = ParseResult::ERROR; + statement.result.has_executable_comments = true; + statement.result.has_comments = scanner.has_comments(); + statement.result.has_user_variables = scanner.has_user_variables(); + statement.result.error.message = {"Executable comment without a parsed statement", 45}; + statement.result.error.offset = statement.offset; + batch.statements.push_back(statement); + cursor = static_cast(end - sql); + continue; + } if (first.type == TokenType::TK_SEMICOLON) { cursor = static_cast(first.source.ptr - sql) + first.source.len; continue; @@ -109,6 +134,8 @@ BatchParseResult Parser::parse_all(const char* sql, size_t len) { ? static_cast(at - sql) : statement.offset; } } + statement.result.has_executable_comments = scanner.has_executable_comments(); + statement.result.has_comments = scanner.has_comments(); batch.statements.push_back(statement); cursor = static_cast(end - sql); } @@ -964,6 +991,13 @@ Token Parser::read_table_name(StringRef& schema_out) { template void Parser::scan_to_end(ParseResult& result) { + if (tokenizer_.parse_depth_exceeded()) { + result.status = ParseResult::ERROR; + result.full_input = false; + result.remaining = tokenizer_.error_source(); + result.error.message = {"SQL parse depth limit exceeded", 30}; + return; + } Token first = tokenizer_.next_token(); if (first.type == TokenType::TK_EOF) { StringRef error_source = tokenizer_.error_source(); diff --git a/tests/pg_compat/ci_cases.jsonl b/tests/pg_compat/ci_cases.jsonl index 8e36511..4e05ce0 100644 --- a/tests/pg_compat/ci_cases.jsonl +++ b/tests/pg_compat/ci_cases.jsonl @@ -380,7 +380,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"CREATE","has_ast":true,"id":"107ae42789f49f72948134fe","line":185,"normalized_sql":"CREATE FUNCTION functest_S_16 ( a INT , b INT ) RETURNS void LANGUAGE SQL BEGIN ATOMIC INSERT INTO functest1 SELECT a + $2 ; END","occurrences":[{"line":185,"offset":6474,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_function_sql.sql"}],"offset":6474,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_FUNCTION_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"BEGIN ATOMIC\n INSERT INTO functest1 SELECT a + $2;\n END","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_function_sql.sql","splitter":"parser","sql":"CREATE FUNCTION functest_S_16(a int, b int) RETURNS void\n LANGUAGE SQL\n BEGIN ATOMIC\n INSERT INTO functest1 SELECT a + $2;\n END"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"107db4ff0619d0b151d46b22","line":255,"normalized_sql":"SELECT * FROM test_squash WHERE id = ANY ( ARRAY [ 1 :: oid :: TEXT :: INT :: oid , 2 :: oid :: INT :: oid ] )","occurrences":[{"line":255,"offset":11387,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_stat_statements/sql/squashing.sql"}],"offset":11387,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_stat_statements/sql/squashing.sql","splitter":"scanner","sql":"\n-- RelabelType together with CoerceViaIO is also squashable\nSELECT * FROM test_squash WHERE id = ANY(ARRAY[1::oid::text::int::oid, 2::oid::int::oid])"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"107efe578a7daa18c9122f2a","line":18,"normalized_sql":"CREATE FUNCTION gbt_bool_sortsupport ( internal ) RETURNS void AS 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE PARALLEL SAFE STRICT","occurrences":[{"line":18,"offset":486,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/btree_gist--1.7--1.8.sql"}],"offset":486,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_FUNCTION_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/btree_gist--1.7--1.8.sql","splitter":"scanner","sql":"\n\nCREATE FUNCTION gbt_bool_sortsupport(internal)\nRETURNS void\nAS 'MODULE_PATHNAME'\nLANGUAGE C IMMUTABLE PARALLEL SAFE STRICT"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SET","has_ast":true,"id":"108241523c8781dfd555b9bd","line":630,"normalized_sql":"SET TRANSACTION SNAPSHOT 'Incorrect Identifier'","occurrences":[{"line":630,"offset":17646,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/transactions.sql"}],"offset":17646,"oracle_node":"PG_QUERY__NODE__NODE_VARIABLE_SET_STMT","parser_status":"OK","parser_stmt_type":"SET","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/transactions.sql","splitter":"scanner","sql":"\nSET TRANSACTION SNAPSHOT 'Incorrect Identifier'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"10893fd9cf3773d2055e0bfa","line":977,"normalized_sql":"SELECT COUNT ( * ) FROM pg_stats WHERE schemaname = 'stats_import' AND tablename = 'test' AND inherited = FALSE AND attname = 'arange'","occurrences":[{"line":977,"offset":29472,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/stats_import.sql"},{"line":990,"offset":29758,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/stats_import.sql"}],"offset":29472,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/stats_import.sql","splitter":"parser","sql":"SELECT COUNT(*)\nFROM pg_stats\nWHERE schemaname = 'stats_import'\nAND tablename = 'test'\nAND inherited = false\nAND attname = 'arange'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"108f19ee4d3f79df55972500","line":519,"normalized_sql":"CREATE INDEX brintest_expr_idx ON brintest_expr USING brin ( brintest_func ( ) )","occurrences":[{"line":519,"offset":18070,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/brin.sql"}],"offset":18070,"oracle_node":"PG_QUERY__NODE__NODE_INDEX_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/brin.sql","splitter":"parser","sql":"CREATE INDEX brintest_expr_idx ON brintest_expr USING brin (brintest_func())"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"108f600d159ae8656e1e1b64","line":334,"normalized_sql":"SELECT explain_mask_costs ( $$\nSELECT * FROM generate_series(25.0, 1.0, 1.0) g(s);$$ , TRUE , TRUE , FALSE , TRUE )","occurrences":[{"line":334,"offset":11611,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/misc_functions.sql"}],"offset":11611,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/misc_functions.sql","splitter":"scanner","sql":"\n\n-- Ensure an empty range estimates 1 row\nSELECT explain_mask_costs($$\nSELECT * FROM generate_series(25.0, 1.0, 1.0) g(s);$$,\ntrue, true, false, true)"} @@ -581,7 +580,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"1ac101cc2bb38517a5cb63f9","line":966,"normalized_sql":"CREATE TABLE inh_nn3 ( a INT NOT NULL , b INT , NOT NULL a NO INHERIT )","occurrences":[{"line":966,"offset":38249,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql"}],"offset":38249,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql","splitter":"scanner","sql":"\nCREATE TABLE inh_nn3 (a int not null, b int, not null a no inherit)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"1acfa2eb17430efea87119c3","line":69,"normalized_sql":"SELECT crypt ( 'This is just a test' , '$5$rounds=5000$toolongsaltstring' ) = '$5$rounds=5000$toolongsaltstrin$Un/5jzAHMgOGZ5.mWJpuVolil07guHPvOW8mGRcvxa5' AS result","occurrences":[{"line":69,"offset":2227,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pgcrypto/sql/crypt-shacrypt.sql"}],"offset":2227,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pgcrypto/sql/crypt-shacrypt.sql","splitter":"parser","sql":"SELECT crypt('This is just a test', '$5$rounds=5000$toolongsaltstring')\n = '$5$rounds=5000$toolongsaltstrin$Un/5jzAHMgOGZ5.mWJpuVolil07guHPvOW8mGRcvxa5' AS result"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"1ad85e46421a2bd1513205a4","line":2709,"normalized_sql":"EXPLAIN ( costs OFF ) SELECT t1 . a , ( SELECT a FROM sj WHERE a = t2 . a AND a = t1 . a ) FROM sj t1 , sj t2 WHERE t1 . a = t2 . a","occurrences":[{"line":2709,"offset":75053,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/join.sql"}],"offset":75053,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"OK","parser_stmt_type":"EXPLAIN","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/join.sql","splitter":"parser","sql":"explain (costs off)\nselect t1.a, (select a from sj where a = t2.a and a = t1.a)\nfrom sj t1, sj t2\nwhere t1.a = t2.a"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"SELECT","has_ast":true,"id":"1ae30f65b161516689dc9b07","line":16,"normalized_sql":"SELECT * , character_length ( 用語 ) FROM 計算機用語","occurrences":[{"line":16,"offset":1020,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":1020,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"用語) from 計算機用語","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select *,character_length(用語) from 計算機用語"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"1ae97db2fbfc1843c8f70ea6","line":1148,"normalized_sql":"CREATE TABLE pagg_tab6 ( c TEXT COLLATE case_insensitive , b TEXT COLLATE case_insensitive ) PARTITION BY LIST ( b COLLATE case_insensitive )","occurrences":[{"line":1148,"offset":48833,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.icu.utf8.sql"}],"offset":48833,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.icu.utf8.sql","splitter":"scanner","sql":"\n\nCREATE TABLE pagg_tab6 (c text collate case_insensitive, b text collate case_insensitive) PARTITION BY LIST (b collate case_insensitive)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"INSERT","has_ast":true,"id":"1aeb095a748f2dec3ed9f34a","line":1286,"normalized_sql":"INSERT INTO temporal_rng ( id , valid_at ) VALUES ( '[1,2)' , daterange ( '2018-01-01' , '2018-03-01' ) ) , ( '[1,2)' , daterange ( '2018-03-01' , '2018-06-01' ) )","occurrences":[{"line":1286,"offset":52527,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql"}],"offset":52527,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql","splitter":"scanner","sql":"\n-- a PK update shrinking the referenced range but still valid:\n-- There are two references: one fulfilled by the first pk row,\n-- the other fulfilled by both pk rows combined.\nINSERT INTO temporal_rng (id, valid_at) VALUES\n ('[1,2)', daterange('2018-01-01', '2018-03-01')),\n ('[1,2)', daterange('2018-03-01', '2018-06-01'))"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"ALTER","has_ast":true,"id":"1afb05cbebd7490dfadc7eec","line":545,"normalized_sql":"ALTER TEXT SEARCH CONFIGURATION alt_ts_conf1 RENAME TO alt_ts_conf4","occurrences":[{"line":545,"offset":25608,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_generic.sql"}],"offset":25608,"oracle_node":"PG_QUERY__NODE__NODE_RENAME_STMT","parser_status":"ERROR","parser_stmt_type":"ALTER","remaining":"TEXT SEARCH CONFIGURATION alt_ts_conf1 RENAME TO alt_ts_conf4","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_generic.sql","splitter":"scanner","sql":" -- failed (not owner)\nALTER TEXT SEARCH CONFIGURATION alt_ts_conf1 RENAME TO alt_ts_conf4"} @@ -624,7 +622,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"INSERT","has_ast":true,"id":"1cf6b6f0486f4408d23ba7df","line":350,"normalized_sql":"INSERT INTO gtest21ax ( a ) VALUES ( 0 )","occurrences":[{"line":350,"offset":13294,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/generated_virtual.sql"},{"line":358,"offset":13695,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/generated_virtual.sql"}],"offset":13294,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/generated_virtual.sql","splitter":"scanner","sql":"\nINSERT INTO gtest21ax (a) VALUES (0)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"ALTER","has_ast":true,"id":"1d27ad63befc7c845ee3e4a7","line":6,"normalized_sql":"ALTER DATABASE regression_utf8 CONNECTION_LIMIT 123","occurrences":[{"line":6,"offset":264,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/database.sql"}],"offset":264,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_DATABASE_STMT","parser_status":"ERROR","parser_stmt_type":"ALTER","remaining":"CONNECTION_LIMIT 123","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/database.sql","splitter":"parser","sql":"ALTER DATABASE regression_utf8 CONNECTION_LIMIT 123"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ALTER","has_ast":true,"id":"1d33d1bad9908ce1095c5a83","line":22,"normalized_sql":"ALTER TABLE itest4 ALTER COLUMN c ADD GENERATED ALWAYS AS IDENTITY","occurrences":[{"line":22,"offset":1100,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/identity.sql"}],"offset":1100,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/identity.sql","splitter":"scanner","sql":"\nALTER TABLE itest4 ALTER COLUMN c ADD GENERATED ALWAYS AS IDENTITY"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"SELECT","has_ast":true,"id":"1d38c100426f015fbf060d09","line":15,"normalized_sql":"SELECT * FROM 計算機用語 WHERE 用語 ~* 'コンピュータ[デグ]'","occurrences":[{"line":15,"offset":944,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":944,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"計算機用語 where 用語 ~* 'コンピュータ[デグ]'","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from 計算機用語 where 用語 ~* 'コンピュータ[デグ]'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"1d399ebbc1f1f331e66bf21f","line":103,"normalized_sql":"CREATE TABLE INSERT_TBL ( x INT DEFAULT nextval ( 'insert_seq' ) , y TEXT DEFAULT '-NULL-' , z INT DEFAULT - 1 * currval ( 'insert_seq' ) , CONSTRAINT INSERT_TBL_CON CHECK ( x >= 3 AND y <> 'check failed' AND x < 8 ) , CHECK ( x + z = 0 ) ENFORCED , CONSTRAINT NE_INSERT_TBL_CON CHECK ( x + z = 1 ) NOT ENFORCED )","occurrences":[{"line":103,"offset":2714,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/constraints.sql"}],"offset":2714,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/constraints.sql","splitter":"scanner","sql":"\n\nCREATE TABLE INSERT_TBL (x INT DEFAULT nextval('insert_seq'),\n\ty TEXT DEFAULT '-NULL-',\n\tz INT DEFAULT -1 * currval('insert_seq'),\n\tCONSTRAINT INSERT_TBL_CON CHECK (x >= 3 AND y <> 'check failed' AND x < 8),\n\tCHECK (x + z = 0) ENFORCED, /* no change it is a default */\n\tCONSTRAINT NE_INSERT_TBL_CON CHECK (x + z = 1) NOT ENFORCED)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"1d5ec1e4b1608f860ac20e88","line":121,"normalized_sql":"CREATE OPERATOR <= ( LEFTARG = int_custom , RIGHTARG = int_custom , FUNCTION = int_custom_le , COMMUTATOR = >= , NEGATOR = > , RESTRICT = scalarlesel , JOIN = scalarlejoinsel )","occurrences":[{"line":121,"offset":2703,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/test_custom_types/test_custom_types--1.0.sql"}],"offset":2703,"oracle_node":"PG_QUERY__NODE__NODE_DEFINE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/test_custom_types/test_custom_types--1.0.sql","splitter":"scanner","sql":"\n\nCREATE OPERATOR <= (\n LEFTARG = int_custom,\n RIGHTARG = int_custom,\n FUNCTION = int_custom_le,\n COMMUTATOR = >=,\n NEGATOR = >,\n RESTRICT = scalarlesel,\n JOIN = scalarlejoinsel\n)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"1d771a11a1fa78c1870f23c9","line":117,"normalized_sql":"EXPLAIN ( RANGE_TABLE , COSTS OFF ) INSERT INTO vegetables ( NAME , genus ) VALUES ( 'broccoflower' , 'brassica' )","occurrences":[{"line":117,"offset":4110,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_overexplain/sql/pg_overexplain.sql"}],"offset":4110,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"OK","parser_stmt_type":"EXPLAIN","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_overexplain/sql/pg_overexplain.sql","splitter":"parser","sql":"EXPLAIN (RANGE_TABLE, COSTS OFF)\nINSERT INTO vegetables (name, genus) VALUES ('broccoflower', 'brassica')"} @@ -733,7 +730,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"22a28fdd1f8217b9c4e9fa43","line":701,"normalized_sql":"SELECT timestamptz '1999-12-31 24:00:00'","occurrences":[{"line":701,"offset":31226,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/timestamptz.sql"}],"offset":31226,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/timestamptz.sql","splitter":"scanner","sql":"\n\n-- test timestamp near POSTGRES_EPOCH_JDATE\nselect timestamptz '1999-12-31 24:00:00'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"22a76e2b0eb6129695951b48","line":80,"normalized_sql":"SELECT count ( * ) FROM pagg_tab GROUP BY c ORDER BY c LIMIT 1","occurrences":[{"line":80,"offset":3734,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/partition_aggregate.sql"}],"offset":3734,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/partition_aggregate.sql","splitter":"parser","sql":"SELECT count(*) FROM pagg_tab GROUP BY c ORDER BY c LIMIT 1"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ALTER","has_ast":true,"id":"22acbcba76880e47a1a456f2","line":267,"normalized_sql":"ALTER INDEX idxpart1_expr_idx ATTACH PARTITION idxpart11_expr_idx","occurrences":[{"line":267,"offset":12259,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/indexing.sql"},{"line":276,"offset":12747,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/indexing.sql"}],"offset":12259,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/indexing.sql","splitter":"scanner","sql":"\n-- attach the indexes; parents stay invalid\nalter index idxpart1_expr_idx attach partition idxpart11_expr_idx"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"SELECT","has_ast":true,"id":"22af652eb3a84169f1363ad7","line":18,"normalized_sql":"SELECT * , POSITION ( 'デ' IN 用語 ) FROM 計算機用語","occurrences":[{"line":18,"offset":1128,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":1128,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"用語) from 計算機用語","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select *,position('デ' in 用語) from 計算機用語"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"ALTER","has_ast":true,"id":"22ca2a1506cf6b193468f5e2","line":965,"normalized_sql":"ALTER EXTENSION postgres_fdw DROP AGGREGATE least_agg ( VARIADIC items anyarray )","occurrences":[{"line":965,"offset":52068,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql"}],"offset":52068,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_EXTENSION_CONTENTS_STMT","parser_status":"ERROR","parser_stmt_type":"ALTER","remaining":"extension postgres_fdw drop aggregate least_agg(variadic items anyarray)","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql","splitter":"scanner","sql":"\nalter extension postgres_fdw drop aggregate least_agg(variadic items anyarray)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"22d3ac4d1cfde8465a2547c7","line":213,"normalized_sql":"SELECT * FROM test_squash_jsonb WHERE DATA IN ( ( '\"1\"' ) :: jsonb , ( '\"2\"' ) :: jsonb , ( '\"3\"' ) :: jsonb , ( '\"4\"' ) :: jsonb , ( '\"5\"' ) :: jsonb , ( '\"6\"' ) :: jsonb , ( '\"7\"' ) :: jsonb , ( '\"8\"' ) :: jsonb , ( '\"9\"' ) :: jsonb , ( '\"10\"' ) :: jsonb )","occurrences":[{"line":213,"offset":9305,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_stat_statements/sql/squashing.sql"}],"offset":9305,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_stat_statements/sql/squashing.sql","splitter":"scanner","sql":"\nSELECT * FROM test_squash_jsonb WHERE data IN\n\t(('\"1\"')::jsonb, ('\"2\"')::jsonb, ('\"3\"')::jsonb, ('\"4\"')::jsonb,\n\t ('\"5\"')::jsonb, ('\"6\"')::jsonb, ('\"7\"')::jsonb, ('\"8\"')::jsonb,\n\t ('\"9\"')::jsonb, ('\"10\"')::jsonb)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"22d437086149ab88d6b71ddd","line":3074,"normalized_sql":"CREATE UNIQUE INDEX ON sl ( a , b )","occurrences":[{"line":3074,"offset":87544,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/join.sql"}],"offset":87544,"oracle_node":"PG_QUERY__NODE__NODE_INDEX_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/join.sql","splitter":"parser","sql":"create unique index on sl(a, b)"} @@ -821,7 +817,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ALTER","has_ast":true,"id":"278a4248af1547f87f258264","line":2081,"normalized_sql":"ALTER TABLE r1 ADD c INT GENERATED ALWAYS AS ( a * 100 ) VIRTUAL","occurrences":[{"line":2081,"offset":70798,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/rowsecurity.sql"}],"offset":70798,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/rowsecurity.sql","splitter":"scanner","sql":"\nALTER TABLE r1 ADD c int GENERATED ALWAYS AS (a * 100) VIRTUAL"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"TRUNCATE","has_ast":true,"id":"278bffcc4aabf82056abd874","line":193,"normalized_sql":"TRUNCATE foo","occurrences":[{"line":193,"offset":4783,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/returning.sql"}],"offset":4783,"oracle_node":"PG_QUERY__NODE__NODE_TRUNCATE_STMT","parser_status":"OK","parser_stmt_type":"TRUNCATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/returning.sql","splitter":"scanner","sql":" -- ok\n\n--\n-- Test RETURNING OLD/NEW.\n--\n-- Start with new data, to ensure predictable TIDs.\n--\nTRUNCATE foo"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ALTER","has_ast":true,"id":"278cb3beca990ed45f78f0ac","line":448,"normalized_sql":"ALTER OPERATOR FAMILY alt_opf18 USING btree ADD FUNCTION 6 ( int4 , int2 ) btint4skipsupport ( internal )","occurrences":[{"line":448,"offset":20612,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_generic.sql"}],"offset":20612,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_OP_FAMILY_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_generic.sql","splitter":"scanner","sql":"\n-- Should fail. Not allowed to have cross-type skip support function.\nALTER OPERATOR FAMILY alt_opf18 USING btree\n ADD FUNCTION 6 (int4, int2) btint4skipsupport(internal)"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"DROP","has_ast":true,"id":"278ddd66feb40996ffba503e","line":1,"normalized_sql":"DROP TABLE 計算機用語","occurrences":[{"line":1,"offset":0,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":0,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"ERROR","parser_stmt_type":"DROP","remaining":"計算機用語","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"drop table 計算機用語"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ALTER","has_ast":true,"id":"2790268378dc16ad5e95a2ab","line":2896,"normalized_sql":"ALTER TABLE ONLY list_parted3 DROP CONSTRAINT list_parted3_a_not_null","occurrences":[{"line":2896,"offset":108384,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_table.sql"}],"offset":108384,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_table.sql","splitter":"scanner","sql":"\nALTER TABLE ONLY list_parted3 DROP CONSTRAINT list_parted3_a_not_null"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"CREATE","has_ast":true,"id":"27a6d058c113cd9585dbbc66","line":1,"normalized_sql":"CREATE EXTENSION spgist_name_ops","occurrences":[{"line":1,"offset":0,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/spgist_name_ops/sql/spgist_name_ops.sql"}],"offset":0,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_EXTENSION_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"extension spgist_name_ops","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/spgist_name_ops/sql/spgist_name_ops.sql","splitter":"scanner","sql":"create extension spgist_name_ops"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"ALTER","has_ast":true,"id":"27a9c1b3741e6c8a34b3f628","line":534,"normalized_sql":"ALTER TEXT SEARCH CONFIGURATION alt_ts_conf1 RENAME TO alt_ts_conf2","occurrences":[{"line":534,"offset":24907,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_generic.sql"}],"offset":24907,"oracle_node":"PG_QUERY__NODE__NODE_RENAME_STMT","parser_status":"ERROR","parser_stmt_type":"ALTER","remaining":"TEXT SEARCH CONFIGURATION alt_ts_conf1 RENAME TO alt_ts_conf2","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_generic.sql","splitter":"scanner","sql":"\n\nALTER TEXT SEARCH CONFIGURATION alt_ts_conf1 RENAME TO alt_ts_conf2"} @@ -836,8 +831,8 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"DROP","has_ast":true,"id":"2824367c6eac22ed05aec822","line":231,"normalized_sql":"DROP TABLE encoding_tests","occurrences":[{"line":231,"offset":9334,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/encoding.sql"}],"offset":9334,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"OK","parser_stmt_type":"DROP","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/encoding.sql","splitter":"scanner","sql":"\n\nDROP TABLE encoding_tests"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ROLLBACK","has_ast":true,"id":"2831a46d24833482f4cb23f0","line":188,"normalized_sql":"ROLLBACK PREPARED 'regress_p2'","occurrences":[{"line":188,"offset":5185,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/prepared_xacts.sql"}],"offset":5185,"oracle_node":"PG_QUERY__NODE__NODE_TRANSACTION_STMT","parser_status":"OK","parser_stmt_type":"ROLLBACK","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/prepared_xacts.sql","splitter":"scanner","sql":"\nROLLBACK PREPARED 'regress_p2'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"284008c43030891b944a1b78","line":887,"normalized_sql":"CREATE TABLE inh_cc1 ( f2 TEXT , f3 INT ) INHERITS ( inh_pp1 )","occurrences":[{"line":887,"offset":34866,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql"},{"line":896,"offset":35204,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql"}],"offset":34866,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql","splitter":"scanner","sql":"\ncreate table inh_cc1 (f2 text, f3 int) inherits (inh_pp1)"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"SET","has_ast":false,"id":"28405a5b75ac01fabec5cf3b","line":659,"normalized_sql":"SET LOCAL TIME ZONE 'Australia/Sydney'","occurrences":[{"line":659,"offset":29415,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/timestamptz.sql"}],"offset":29415,"oracle_node":"PG_QUERY__NODE__NODE_VARIABLE_SET_STMT","parser_status":"ERROR","parser_stmt_type":"SET","remaining":"ZONE 'Australia/Sydney'","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/timestamptz.sql","splitter":"scanner","sql":"\nSET LOCAL TIME ZONE 'Australia/Sydney'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"UPDATE","has_ast":true,"id":"285009db46157f0f6eb0e664","line":457,"normalized_sql":"UPDATE temporal_rng3 SET id = NULL , valid_at = 'empty' WHERE id = '[1,2)' AND valid_at IS NULL","occurrences":[{"line":457,"offset":14841,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql"}],"offset":14841,"oracle_node":"PG_QUERY__NODE__NODE_UPDATE_STMT","parser_status":"OK","parser_stmt_type":"UPDATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql","splitter":"scanner","sql":"\n-- still rejects empty when scalar part is NULL:\nUPDATE temporal_rng3\nSET id = NULL,\n valid_at = 'empty'\nWHERE id = '[1,2)' AND valid_at IS NULL"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"PARTIAL","expected_stmt_type":"INSERT","has_ast":false,"id":"2852eccba6ac4adf3cb81068","line":6,"normalized_sql":"INSERT INTO 計算機用語 VALUES ( 'コンピュータグラフィックス' , '分B10中' )","occurrences":[{"line":6,"offset":370,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":370,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"PARTIAL","parser_stmt_type":"INSERT","remaining":"¨ˆ算機用語 values('コンピュータグラフィックス','分B10中')","result":"PARTIAL","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"insert into 計算機用語 values('コンピュータグラフィックス','分B10中')"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"285bf8fd211ebfc363c1fe2f","line":75,"normalized_sql":"SELECT DISTINCT ON ( y , x ) x , y FROM distinct_on_tbl ORDER BY y","occurrences":[{"line":75,"offset":2569,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/select_distinct_on.sql"}],"offset":2569,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/select_distinct_on.sql","splitter":"parser","sql":"SELECT DISTINCT ON (y, x) x, y FROM distinct_on_tbl ORDER BY y"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"CREATE","has_ast":true,"id":"2873507ccf9d80d776473693","line":26,"normalized_sql":"CREATE SUBSCRIPTION regress_testsub CONNECTION 'dbname=regress_doesnotexist' PUBLICATION foo , testpub , foo WITH ( connect = FALSE )","occurrences":[{"line":26,"offset":772,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/subscription.sql"}],"offset":772,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_SUBSCRIPTION_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"SUBSCRIPTION regress_testsub CONNECTION 'dbname=regress_doesnotexist' PUBLICATION foo, testpub, foo WITH (connect = false)","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/subscription.sql","splitter":"scanner","sql":"\n\n-- fail - duplicate publications\nCREATE SUBSCRIPTION regress_testsub CONNECTION 'dbname=regress_doesnotexist' PUBLICATION foo, testpub, foo WITH (connect = false)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"287da0971e59574fef536235","line":22,"normalized_sql":"SELECT 1 AS \"int\" OFFSET 2 LIMIT 2","occurrences":[{"line":22,"offset":515,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_stat_statements/sql/select.sql"}],"offset":515,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_stat_statements/sql/select.sql","splitter":"scanner","sql":"\nSELECT 1 AS \"int\" OFFSET 2 LIMIT 2"} @@ -2119,7 +2114,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"68555bbbfdce594d88c32e2e","line":284,"normalized_sql":"SELECT WHERE '1' IN ( '1' :: INT , '2' :: INT )","occurrences":[{"line":284,"offset":12437,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_stat_statements/sql/squashing.sql"}],"offset":12437,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_stat_statements/sql/squashing.sql","splitter":"scanner","sql":"\n-- Rewritten as an ArrayExpr, so it will be squashed\nselect where '1' IN ('1'::int, '2'::int)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"6875a7ce24d8079f5aa42e1e","line":96,"normalized_sql":"CREATE TABLE temporal_rng3 ( id int4range , valid_at textrange2 , CONSTRAINT temporal_rng3_pk PRIMARY KEY ( id , valid_at WITHOUT OVERLAPS ) )","occurrences":[{"line":96,"offset":2628,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql"}],"offset":2628,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql","splitter":"scanner","sql":"\nCREATE TABLE temporal_rng3 (\n id int4range,\n valid_at textrange2,\n CONSTRAINT temporal_rng3_pk PRIMARY KEY (id, valid_at WITHOUT OVERLAPS)\n)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TYPE_MISMATCH","expected_stmt_type":"ALTER","has_ast":false,"id":"6878a6bb5db6e8b9788c34c5","line":254,"normalized_sql":"REASSIGN OWNED BY regress_host_resource_admin TO regress_host_resource_newadmin","occurrences":[{"line":254,"offset":14446,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/unsafe_tests/sql/guc_privs.sql"}],"offset":14446,"oracle_node":"PG_QUERY__NODE__NODE_REASSIGN_OWNED_STMT","parser_status":"OK","parser_stmt_type":"UNKNOWN","remaining":"OWNED BY regress_host_resource_admin TO regress_host_resource_newadmin","result":"TYPE_MISMATCH","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/unsafe_tests/sql/guc_privs.sql","splitter":"scanner","sql":"\nREASSIGN OWNED BY regress_host_resource_admin TO regress_host_resource_newadmin"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"PARTIAL","expected_stmt_type":"INSERT","has_ast":false,"id":"687a915c1b971b946a48da92","line":5,"normalized_sql":"INSERT INTO 計算機用語 VALUES ( 'コンピュータディスプレイ' , '機A01上' )","occurrences":[{"line":5,"offset":282,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":282,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"PARTIAL","parser_stmt_type":"INSERT","remaining":"¨ˆ算機用語 values('コンピュータディスプレイ','機A01上')","result":"PARTIAL","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"insert into 計算機用語 values('コンピュータディスプレイ','機A01上')"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"688539c097972c649a729623","line":540,"normalized_sql":"SELECT REPLACE ( b COLLATE ctest_nondet , U&'\\00E4b' , 'X' ) FROM test6","occurrences":[{"line":540,"offset":18875,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.icu.utf8.sql"}],"offset":18875,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.icu.utf8.sql","splitter":"scanner","sql":"\nSELECT replace(b COLLATE ctest_nondet, U&'\\00E4b', 'X') FROM test6"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"CREATE","has_ast":true,"id":"6899d8f1e683ae5b6ab4c897","line":45,"normalized_sql":"CREATE PUBLICATION testpub_foralltables FOR ALL TABLES WITH ( publish = 'insert' )","occurrences":[{"line":45,"offset":1554,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/publication.sql"}],"offset":1554,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_PUBLICATION_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"PUBLICATION testpub_foralltables FOR ALL TABLES WITH (publish = 'insert')","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/publication.sql","splitter":"scanner","sql":"\nCREATE PUBLICATION testpub_foralltables FOR ALL TABLES WITH (publish = 'insert')"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"689ba5bebc724d6eed33f9c3","line":93,"normalized_sql":"SELECT crypt ( 'a short string' , '$6$rounds=123456$asaltof16chars..' ) = '$6$rounds=123456$asaltof16chars..$BtCwjqMJGx5hrJhZywWvt0RLE8uZ4oPwcelCjmw2kSYu.Ec6ycULevoBK25fs2xXgMNrCzIMVcgEJAstJeonj1' AS result","occurrences":[{"line":93,"offset":4406,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pgcrypto/sql/crypt-shacrypt.sql"}],"offset":4406,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pgcrypto/sql/crypt-shacrypt.sql","splitter":"parser","sql":"SELECT crypt('a short string', '$6$rounds=123456$asaltof16chars..')\n = '$6$rounds=123456$asaltof16chars..$BtCwjqMJGx5hrJhZywWvt0RLE8uZ4oPwcelCjmw2kSYu.Ec6ycULevoBK25fs2xXgMNrCzIMVcgEJAstJeonj1' AS result"} @@ -2906,7 +2900,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ALTER","has_ast":true,"id":"8f104b3fa62e4d1f19739f4b","line":123,"normalized_sql":"ALTER OPERATOR FAMILY gist_bit_ops USING gist ADD FUNCTION 11 ( BIT , BIT ) gbt_bit_sortsupport ( internal )","occurrences":[{"line":123,"offset":3123,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/btree_gist--1.7--1.8.sql"}],"offset":3123,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_OP_FAMILY_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/btree_gist--1.7--1.8.sql","splitter":"scanner","sql":"\n\nALTER OPERATOR FAMILY gist_bit_ops USING gist ADD\n\tFUNCTION\t11 (bit, bit) gbt_bit_sortsupport (internal) "} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"DROP","has_ast":true,"id":"8f11c2c297a99dc33aa3a167","line":301,"normalized_sql":"DROP TABLE ctl_stats3_child","occurrences":[{"line":301,"offset":12698,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_table_like.sql"}],"offset":12698,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"OK","parser_stmt_type":"DROP","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_table_like.sql","splitter":"scanner","sql":"\nDROP TABLE ctl_stats3_child"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"CREATE","has_ast":true,"id":"8f3b5a835ac43107c7431661","line":14,"normalized_sql":"CREATE OR REPLACE FUNCTION regexp_matches ( STRING citext , pattern citext ) RETURNS SETOF TEXT [ ] LANGUAGE SQL IMMUTABLE STRICT PARALLEL SAFE ROWS 1 RETURN pg_catalog . regexp_matches ( $1 :: TEXT , $2 :: TEXT , 'i' )","occurrences":[{"line":14,"offset":649,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/citext/citext--1.7--1.8.sql"}],"offset":649,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_FUNCTION_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"RETURN pg_catalog.regexp_matches( $1::text, $2::text, 'i' )","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/citext/citext--1.7--1.8.sql","splitter":"scanner","sql":"\n\nCREATE OR REPLACE FUNCTION regexp_matches(string citext, pattern citext) RETURNS SETOF TEXT[]\nLANGUAGE SQL IMMUTABLE STRICT PARALLEL SAFE ROWS 1\nRETURN pg_catalog.regexp_matches( $1::text, $2::text, 'i' )"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"SELECT","has_ast":true,"id":"8f446acafba8601f238956f3","line":13,"normalized_sql":"SELECT * FROM 計算機用語 WHERE 分類コード LIKE '_Z%'","occurrences":[{"line":13,"offset":805,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":805,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"計算機用語 where 分類コード like '_Z%'","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from 計算機用語 where 分類コード like '_Z%'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ALTER","has_ast":true,"id":"8f45a571a8cecf3f2cef3308","line":538,"normalized_sql":"ALTER TABLE t2 ALTER COLUMN z DROP NOT NULL","occurrences":[{"line":538,"offset":18251,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/aggregates.sql"}],"offset":18251,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/aggregates.sql","splitter":"scanner","sql":"\nalter table t2 alter column z drop not null"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"COPY","has_ast":true,"id":"8f4f3ef49a411ec2f564a7e3","line":365,"normalized_sql":"COPY copytest_foreign_table FROM STDIN ( FREEZE )","occurrences":[{"line":365,"offset":9998,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/copy.sql"}],"offset":9998,"oracle_node":"PG_QUERY__NODE__NODE_COPY_STMT","parser_status":"OK","parser_stmt_type":"COPY","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/copy.sql","splitter":"scanner","sql":"\ncopy copytest_foreign_table from stdin (freeze)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"8f520d87c9f19a65c3207bc7","line":1131,"normalized_sql":"CREATE TABLE inh_nn2 ( f2 TEXT , f3 INT ) INHERITS ( inh_nn1 )","occurrences":[{"line":1131,"offset":44731,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql"},{"line":1148,"offset":45567,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql"}],"offset":44731,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql","splitter":"scanner","sql":"\ncreate table inh_nn2 (f2 text, f3 int) inherits (inh_nn1)"} @@ -3115,7 +3108,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ALTER","has_ast":true,"id":"99952a2e70945905f935b1da","line":257,"normalized_sql":"ALTER TABLE FKTABLE ADD CONSTRAINT fk_con FOREIGN KEY ( ftest1 , ftest2 ) REFERENCES PKTABLE NOT VALID NOT ENFORCED","occurrences":[{"line":257,"offset":7517,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/foreign_key.sql"}],"offset":7517,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/foreign_key.sql","splitter":"scanner","sql":"\n\n-- Modifying other attributes of a constraint should not affect its enforceability, and vice versa\nALTER TABLE FKTABLE ADD CONSTRAINT fk_con FOREIGN KEY(ftest1, ftest2) REFERENCES PKTABLE NOT VALID NOT ENFORCED"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"GRANT","has_ast":true,"id":"9998e396c47fe0b7fe83231c","line":22,"normalized_sql":"GRANT SELECT ON pg_buffercache_numa TO pg_monitor","occurrences":[{"line":22,"offset":816,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_buffercache/pg_buffercache--1.5--1.6.sql"}],"offset":816,"oracle_node":"PG_QUERY__NODE__NODE_GRANT_STMT","parser_status":"OK","parser_stmt_type":"GRANT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_buffercache/pg_buffercache--1.5--1.6.sql","splitter":"scanner","sql":"\nGRANT SELECT ON pg_buffercache_numa TO pg_monitor"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"99a5887fcfc2ac4724f8cfba","line":305,"normalized_sql":"SELECT explain_mask_costs ( $$\nSELECT * FROM generate_series(TIMESTAMPTZ '-infinity', TIMESTAMPTZ 'infinity', INTERVAL '1 day') g(s);$$ , FALSE , TRUE , FALSE , TRUE )","occurrences":[{"line":305,"offset":10553,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/misc_functions.sql"}],"offset":10553,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/misc_functions.sql","splitter":"scanner","sql":"\n\n-- Ensure we get the default row estimate for infinity values\nSELECT explain_mask_costs($$\nSELECT * FROM generate_series(TIMESTAMPTZ '-infinity', TIMESTAMPTZ 'infinity', INTERVAL '1 day') g(s);$$,\nfalse, true, false, true)"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"SELECT","has_ast":true,"id":"99aa9b1fedd8e79b004e38dc","line":11,"normalized_sql":"SELECT * FROM 計算機用語 WHERE 分類コード ~* '人z01下'","occurrences":[{"line":11,"offset":671,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":671,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"計算機用語 where 分類コード ~* '人z01下'","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from 計算機用語 where 分類コード ~* '人z01下'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"99b9c329bc9f41f6d6001634","line":882,"normalized_sql":"CREATE TABLE notnull_tbl1 ( a INT )","occurrences":[{"line":882,"offset":29622,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/constraints.sql"},{"line":894,"offset":30121,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/constraints.sql"}],"offset":29622,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/constraints.sql","splitter":"scanner","sql":"\n\n-- ALTER .. NO INHERIT works for invalid constraints\nCREATE TABLE notnull_tbl1 (a int)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"99bab07b6372501100870c99","line":190,"normalized_sql":"CREATE TABLE temporal_rng4 ( id int4range , valid_at int4_d_range , CONSTRAINT temporal_rng4_pk PRIMARY KEY ( id , valid_at WITHOUT OVERLAPS ) )","occurrences":[{"line":190,"offset":5626,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql"}],"offset":5626,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql","splitter":"scanner","sql":"\nCREATE TABLE temporal_rng4 (\n id int4range,\n valid_at int4_d_range,\n CONSTRAINT temporal_rng4_pk PRIMARY KEY(id, valid_at WITHOUT OVERLAPS)\n)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ALTER","has_ast":true,"id":"99c29c7f48328ec96cc4e03e","line":968,"normalized_sql":"ALTER TABLE notnull_tbl1_upg ADD CONSTRAINT nn NOT NULL a NOT VALID","occurrences":[{"line":968,"offset":33953,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/constraints.sql"}],"offset":33953,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/constraints.sql","splitter":"scanner","sql":"\nALTER TABLE notnull_tbl1_upg ADD CONSTRAINT nn NOT NULL a NOT VALID"} @@ -3496,7 +3488,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"INSERT","has_ast":true,"id":"ae587842d7742b8a5fd90b4f","line":49,"normalized_sql":"INSERT INTO temporal_fk_rng2rng VALUES ( 4 , '[2001-01-01,2002-01-01)' , 2 )","occurrences":[{"line":49,"offset":1595,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/sql/without_overlaps.sql"}],"offset":1595,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/sql/without_overlaps.sql","splitter":"scanner","sql":"\n-- key exist but is outside range\nINSERT INTO temporal_fk_rng2rng VALUES\n (4, '[2001-01-01,2002-01-01)', 2)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"ae7c25673ddcd6cb7c5f6235","line":160,"normalized_sql":"SELECT * FROM gtestx","occurrences":[{"line":160,"offset":6675,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/generated_stored.sql"},{"line":160,"offset":6702,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/generated_virtual.sql"}],"offset":6675,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/generated_stored.sql","splitter":"scanner","sql":"\nSELECT * FROM gtestx"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"INSERT","has_ast":true,"id":"ae7ef96cea3b981fa6e62933","line":891,"normalized_sql":"INSERT INTO temporal_mltrng ( id , valid_at ) VALUES ( '[1,2)' , datemultirange ( daterange ( '2010-01-01' , '2020-01-01' ) ) ) ON CONFLICT ON CONSTRAINT temporal_mltrng_pk DO UPDATE SET id = EXCLUDED . id + '[3,4)'","occurrences":[{"line":891,"offset":35869,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql"}],"offset":35869,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql","splitter":"scanner","sql":"\n-- id matches but no conflict\nINSERT INTO temporal_mltrng (id, valid_at) VALUES ('[1,2)', datemultirange(daterange('2010-01-01', '2020-01-01'))) ON CONFLICT ON CONSTRAINT temporal_mltrng_pk DO UPDATE SET id = EXCLUDED.id + '[3,4)'"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"CREATE","has_ast":true,"id":"ae845886aca7b8f1176c7801","line":4,"normalized_sql":"CREATE INDEX 計算機用語index2 ON 計算機用語 USING hash ( 分類コード )","occurrences":[{"line":4,"offset":198,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":198,"oracle_node":"PG_QUERY__NODE__NODE_INDEX_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"計算機用語index2 on 計算機用語 using hash (分類コード)","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"create index 計算機用語index2 on 計算機用語 using hash (分類コード)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"ae8e8086c02c4f5bcad6b8cc","line":1315,"normalized_sql":"EXPLAIN ( COSTS OFF ) SELECT unique1 , stringu1 FROM onek WHERE stringu1 :: TEXT IN ( VALUES ( 'RFAAAA' ) , ( 'VJAAAA' ) )","occurrences":[{"line":1315,"offset":37588,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/subselect.sql"}],"offset":37588,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"OK","parser_stmt_type":"EXPLAIN","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/subselect.sql","splitter":"scanner","sql":"\n\nEXPLAIN (COSTS OFF)\nSELECT unique1, stringu1 FROM onek WHERE stringu1::text IN (VALUES('RFAAAA'), ('VJAAAA'))"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ALTER","has_ast":true,"id":"aeab454b756f85bc6fc0d6cc","line":978,"normalized_sql":"ALTER TABLE inh_child1 INHERIT inh_parent","occurrences":[{"line":978,"offset":38587,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql"}],"offset":38587,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql","splitter":"scanner","sql":"\n\n-- inh_child1 should have not null constraint\nalter table inh_child1 inherit inh_parent"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"aeb4e821d0ede06cd7b5bcd5","line":180,"normalized_sql":"SELECT explain_filter ( 'explain (analyze,buffers off,serialize) create temp table explain_temp as select * from int8_tbl i8' )","occurrences":[{"line":180,"offset":7258,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/explain.sql"}],"offset":7258,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/explain.sql","splitter":"parser","sql":"select explain_filter('explain (analyze,buffers off,serialize) create temp table explain_temp as select * from int8_tbl i8')"} @@ -3516,7 +3507,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"CREATE","has_ast":true,"id":"af438d0564ed46d922e1b553","line":156,"normalized_sql":"CREATE EVENT TRIGGER tcl_a_snitch ON ddl_command_start EXECUTE PROCEDURE tclsnitch ( )","occurrences":[{"line":156,"offset":3360,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/tcl/sql/pltcl_setup.sql"}],"offset":3360,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_EVENT_TRIG_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"event trigger tcl_a_snitch on ddl_command_start execute procedure tclsnitch()","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/tcl/sql/pltcl_setup.sql","splitter":"parser","sql":"create event trigger tcl_a_snitch on ddl_command_start execute procedure tclsnitch()"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"af4a430bb8ad45c19b3e0b4f","line":75,"normalized_sql":"SELECT set_masklen ( cidr ( TEXT ( c ) ) , 33 ) FROM INET_TBL","occurrences":[{"line":75,"offset":3343,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inet.sql"}],"offset":3343,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inet.sql","splitter":"parser","sql":"SELECT set_masklen(cidr(text(c)), 33) FROM INET_TBL"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"CREATE","has_ast":true,"id":"af4b292b2bd466b9e7beb6ef","line":94,"normalized_sql":"CREATE EVENT TRIGGER always_start ON ddl_command_start EXECUTE PROCEDURE event_trigger_test ( )","occurrences":[{"line":94,"offset":3916,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/dummy_seclabel/sql/dummy_seclabel.sql"}],"offset":3916,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_EVENT_TRIG_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"EVENT TRIGGER always_start ON ddl_command_start\nEXECUTE PROCEDURE event_trigger_test()","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/dummy_seclabel/sql/dummy_seclabel.sql","splitter":"parser","sql":"CREATE EVENT TRIGGER always_start ON ddl_command_start\nEXECUTE PROCEDURE event_trigger_test()"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"SELECT","has_ast":true,"id":"af6390317ba0d7d8854d07a7","line":19,"normalized_sql":"SELECT * , SUBSTRING ( 用語 FROM 10 FOR 4 ) FROM 計算機用語","occurrences":[{"line":19,"offset":1185,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":1185,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"用語 from 10 for 4) from 計算機用語","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select *,substring(用語 from 10 for 4) from 計算機用語"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"CREATE","has_ast":true,"id":"af6d454d74e341949b909a53","line":123,"normalized_sql":"CREATE RULE rtest_order_r2 AS ON INSERT TO rtest_order1 DO INSERT INTO rtest_order2 VALUES ( NEW . a , nextval ( 'rtest_seq' ) , 'rule 2 - this should run 2nd' )","occurrences":[{"line":123,"offset":4175,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/rules.sql"}],"offset":4175,"oracle_node":"PG_QUERY__NODE__NODE_RULE_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"rule rtest_order_r2 as on insert to rtest_order1 do\n\tinsert into rtest_order2 values (new.a, nextval('rtest_seq'),\n\t\t'rule 2 - this should run 2nd')","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/rules.sql","splitter":"scanner","sql":"\n\ncreate rule rtest_order_r2 as on insert to rtest_order1 do\n\tinsert into rtest_order2 values (new.a, nextval('rtest_seq'),\n\t\t'rule 2 - this should run 2nd')"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"PARTIAL","expected_stmt_type":"UPDATE","has_ast":false,"id":"af87169a1f09597ad8e26de5","line":215,"normalized_sql":"UPDATE arrtest1 SET i [ 11 : 12 ] = ARRAY [ NULL , 22 ] , t [ 11 : 12 ] = ARRAY [ NULL , 'p22' ]","occurrences":[{"line":215,"offset":6309,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/arrays.sql"}],"offset":6309,"oracle_node":"PG_QUERY__NODE__NODE_UPDATE_STMT","parser_status":"PARTIAL","parser_stmt_type":"UPDATE","remaining":":12] = array[null,22], t[11:12] = array[null,'p22']","result":"PARTIAL","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/arrays.sql","splitter":"scanner","sql":"\nupdate arrtest1 set i[11:12] = array[null,22], t[11:12] = array[null,'p22']"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"INSERT","has_ast":true,"id":"af888aa3f2e468cd32145fd0","line":199,"normalized_sql":"INSERT INTO foo DEFAULT VALUES RETURNING WITH ( OLD AS o , NEW AS n , OLD AS o ) *","occurrences":[{"line":199,"offset":5128,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/returning.sql"}],"offset":5128,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/returning.sql","splitter":"scanner","sql":"\nINSERT INTO foo DEFAULT VALUES RETURNING WITH (old AS o, new AS n, old AS o) *"} @@ -3651,7 +3641,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"SHOW","has_ast":false,"id":"b5da38d64de468721291fd47","line":8,"normalized_sql":"SHOW plperl . on_plperl_init","occurrences":[{"line":8,"offset":171,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plperl/sql/plperl_init.sql"},{"line":30,"offset":528,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plperl/sql/plperl_init.sql"}],"offset":171,"oracle_node":"PG_QUERY__NODE__NODE_VARIABLE_SHOW_STMT","parser_status":"OK","parser_stmt_type":"SHOW","remaining":"plperl.on_plperl_init","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plperl/sql/plperl_init.sql","splitter":"scanner","sql":"\n\nSHOW plperl.on_plperl_init"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"b610b98e410beb79dfc4ed13","line":680,"normalized_sql":"EXPLAIN ( ANALYZE , costs OFF , summary OFF , timing OFF , buffers OFF ) SELECT * FROM ( SELECT * FROM ab WHERE a = 1 UNION ALL ( VALUES ( 10 , 5 ) ) UNION ALL SELECT * FROM ab ) ab WHERE b = ( SELECT 1 )","occurrences":[{"line":680,"offset":32587,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/partition_prune.sql"}],"offset":32587,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"OK","parser_stmt_type":"EXPLAIN","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/partition_prune.sql","splitter":"scanner","sql":"\n\n-- A case containing a UNION ALL with a non-partitioned child.\nexplain (analyze, costs off, summary off, timing off, buffers off)\nselect * from (select * from ab where a = 1 union all (values(10,5)) union all select * from ab) ab where b = (select 1)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"ALTER","has_ast":true,"id":"b611f58d642506f32f0401f0","line":122,"normalized_sql":"ALTER EXTENSION test_pg_dump DROP SCHEMA test_pg_dump_s1","occurrences":[{"line":122,"offset":4635,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/test_pg_dump/sql/test_pg_dump.sql"}],"offset":4635,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_EXTENSION_CONTENTS_STMT","parser_status":"ERROR","parser_stmt_type":"ALTER","remaining":"EXTENSION test_pg_dump DROP SCHEMA test_pg_dump_s1","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/test_pg_dump/sql/test_pg_dump.sql","splitter":"parser","sql":"ALTER EXTENSION test_pg_dump DROP SCHEMA test_pg_dump_s1"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"CREATE","has_ast":true,"id":"b61f8504e316d3b54e162ab7","line":2,"normalized_sql":"CREATE TABLE 計算機用語 ( 用語 TEXT , 分類コード VARCHAR , 備考1Aだよ CHAR ( 16 ) )","occurrences":[{"line":2,"offset":28,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":28,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"計算機用語 (用語 text, 分類コード varchar, 備考1Aだよ char(16))","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"create table 計算機用語 (用語 text, 分類コード varchar, 備考1Aだよ char(16))"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"ALTER","has_ast":true,"id":"b62968d72ce23ed1a99af009","line":898,"normalized_sql":"ALTER PUBLICATION testpub4 OWNER TO regress_publication_user","occurrences":[{"line":898,"offset":41592,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/publication.sql"}],"offset":41592,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_OWNER_STMT","parser_status":"ERROR","parser_stmt_type":"ALTER","remaining":"PUBLICATION testpub4 owner to regress_publication_user","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/publication.sql","splitter":"scanner","sql":" -- fail\nALTER PUBLICATION testpub4 owner to regress_publication_user"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"INSERT","has_ast":true,"id":"b653d30e725d4c22f54fb366","line":378,"normalized_sql":"INSERT INTO temporal_rng3 ( id , valid_at ) VALUES ( '[1,2)' , daterange ( '2018-03-03' , '2018-04-04' ) )","occurrences":[{"line":378,"offset":11731,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql"},{"line":405,"offset":13040,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql"}],"offset":11731,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql","splitter":"scanner","sql":"\nINSERT INTO temporal_rng3 (id, valid_at) VALUES ('[1,2)', daterange('2018-03-03', '2018-04-04'))"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"DO","has_ast":true,"id":"b655f730931785625c9021c3","line":26,"normalized_sql":"DO LANGUAGE plpgsql $$\nBEGIN\n FOR i IN 0..9 LOOP\n INSERT INTO test1 (a) VALUES (i);\n IF i % 2 = 0 THEN\n COMMIT;\n ELSE\n ROLLBACK;\n END IF;\n END LOOP;\nEND\n$$","occurrences":[{"line":26,"offset":383,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpgsql/src/sql/plpgsql_transaction.sql"}],"offset":383,"oracle_node":"PG_QUERY__NODE__NODE_DO_STMT","parser_status":"OK","parser_stmt_type":"DO","remaining":"plpgsql\n$$\nBEGIN\n FOR i IN 0..9 LOOP\n INSERT INTO test1 (a) VALUES (i);\n IF i % 2 = 0 THEN\n COMMIT;\n ELSE\n ROLLBACK;\n END IF;\n END LOOP;\nEND\n$$","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpgsql/src/sql/plpgsql_transaction.sql","splitter":"parser","sql":"DO\nLANGUAGE plpgsql\n$$\nBEGIN\n FOR i IN 0..9 LOOP\n INSERT INTO test1 (a) VALUES (i);\n IF i % 2 = 0 THEN\n COMMIT;\n ELSE\n ROLLBACK;\n END IF;\n END LOOP;\nEND\n$$"} @@ -3683,7 +3672,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"DROP","has_ast":true,"id":"b7aa81f9c6d193b0dacf8d96","line":989,"normalized_sql":"DROP INDEX CONCURRENTLY test_pg_index_toast_index","occurrences":[{"line":989,"offset":49451,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/indexing.sql"}],"offset":49451,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"OK","parser_stmt_type":"DROP","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/indexing.sql","splitter":"scanner","sql":"\ndrop index concurrently test_pg_index_toast_index"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"INSERT","has_ast":true,"id":"b7be225a261134ff1ec79fb0","line":472,"normalized_sql":"INSERT INTO temporal_mltrng ( id , valid_at ) VALUES ( '[1,2)' , datemultirange ( daterange ( '2018-03-03' , '2018-04-04' ) ) )","occurrences":[{"line":472,"offset":15318,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql"},{"line":497,"offset":16603,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql"}],"offset":15318,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql","splitter":"scanner","sql":"\nINSERT INTO temporal_mltrng (id, valid_at) VALUES ('[1,2)', datemultirange(daterange('2018-03-03', '2018-04-04')))"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"CREATE","has_ast":true,"id":"b7c02295c435b742055c9d8e","line":149,"normalized_sql":"CREATE FUNCTION hobbies_by_name ( hobbies_r . NAME % TYPE ) RETURNS hobbies_r . person % TYPE AS 'select person from hobbies_r where name = $1' LANGUAGE SQL","occurrences":[{"line":149,"offset":3059,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/misc.sql"}],"offset":3059,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_FUNCTION_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"%TYPE\n AS 'select person from hobbies_r where name = $1'\n LANGUAGE SQL","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/misc.sql","splitter":"scanner","sql":"\n\nCREATE FUNCTION hobbies_by_name(hobbies_r.name%TYPE)\n RETURNS hobbies_r.person%TYPE\n AS 'select person from hobbies_r where name = $1'\n LANGUAGE SQL"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"CREATE","has_ast":true,"id":"b7c15dc007ada6fa77dd4d6e","line":3,"normalized_sql":"CREATE INDEX 計算機用語index1 ON 計算機用語 USING btree ( 用語 )","occurrences":[{"line":3,"offset":122,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":122,"oracle_node":"PG_QUERY__NODE__NODE_INDEX_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"計算機用語index1 on 計算機用語 using btree (用語)","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"create index 計算機用語index1 on 計算機用語 using btree (用語)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"CREATE","has_ast":true,"id":"b7c1bbc1ef7b9936d4bbd4ec","line":612,"normalized_sql":"CREATE RULE pg_settings_n AS ON UPDATE TO pg_settings DO INSTEAD NOTHING","occurrences":[{"line":612,"offset":22490,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/backend/catalog/system_views.sql"}],"offset":22490,"oracle_node":"PG_QUERY__NODE__NODE_RULE_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"RULE pg_settings_n AS\n ON UPDATE TO pg_settings\n DO INSTEAD NOTHING","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/backend/catalog/system_views.sql","splitter":"parser","sql":"CREATE RULE pg_settings_n AS\n ON UPDATE TO pg_settings\n DO INSTEAD NOTHING"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"b7ec58e2aa99697e9263ac2c","line":4442,"normalized_sql":"CREATE FOREIGN TABLE remote_backend_pid ( pid INT ) SERVER loopback OPTIONS ( table_name 'my_backend_pid' )","occurrences":[{"line":4442,"offset":180210,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql"}],"offset":180210,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_FOREIGN_TABLE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql","splitter":"scanner","sql":"\nCREATE FOREIGN TABLE remote_backend_pid (pid int)\n SERVER loopback OPTIONS (table_name 'my_backend_pid')"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ALTER","has_ast":true,"id":"b7ed99265edea652185d1c72","line":7,"normalized_sql":"ALTER TYPE rainbow ADD VALUE 'y' BEFORE 'g'","occurrences":[{"line":7,"offset":69,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/sql/enum.sql"}],"offset":69,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_ENUM_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/sql/enum.sql","splitter":"scanner","sql":"\n\n-- enum values added later take some different codepaths internally,\n-- so make sure we have coverage for those too\nalter type rainbow add value 'y' before 'g'"} @@ -3726,7 +3714,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"DROP","has_ast":true,"id":"b9c7e147dc012e1bbdd22175","line":68,"normalized_sql":"DROP TABLE shared_pg_buffercache","occurrences":[{"line":68,"offset":2369,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_buffercache/sql/pg_buffercache.sql"}],"offset":2369,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"OK","parser_stmt_type":"DROP","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_buffercache/sql/pg_buffercache.sql","splitter":"scanner","sql":"\nDROP TABLE shared_pg_buffercache"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"b9d27fa68d753dee70c793c7","line":220,"normalized_sql":"CREATE TABLE pgss_schema_1 . tab_search_same ( a INT , b INT )","occurrences":[{"line":220,"offset":7255,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_stat_statements/sql/select.sql"}],"offset":7255,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_stat_statements/sql/select.sql","splitter":"scanner","sql":"\n-- Same attributes.\nCREATE TABLE pgss_schema_1.tab_search_same (a int, b int)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"b9dc1147343f842033bb8e46","line":378,"normalized_sql":"EXPLAIN ( costs OFF ) SELECT * FROM lparted_by_int2 WHERE a = 100_000_000_000_000","occurrences":[{"line":378,"offset":20354,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/partition_prune.sql"}],"offset":20354,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"OK","parser_stmt_type":"EXPLAIN","remaining":"_000_000_000_000","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/partition_prune.sql","splitter":"scanner","sql":"\nexplain (costs off) select * from lparted_by_int2 where a = 100_000_000_000_000"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SET","has_ast":true,"id":"b9ecaa55eb680ad640b74111","line":63,"normalized_sql":"SET TRANSACTION ISOLATION LEVEL SERIALIZABLE , READ ONLY , DEFERRABLE","occurrences":[{"line":63,"offset":1138,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/transactions.sql"}],"offset":1138,"oracle_node":"PG_QUERY__NODE__NODE_VARIABLE_SET_STMT","parser_status":"OK","parser_stmt_type":"SET","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/transactions.sql","splitter":"scanner","sql":"\nSET TRANSACTION ISOLATION LEVEL SERIALIZABLE, READ ONLY, DEFERRABLE"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"b9fbd4f4fa73b261979d685b","line":897,"normalized_sql":"EXPLAIN ( ANALYZE , costs OFF , summary OFF , timing OFF , buffers OFF ) SELECT * FROM stable_qual_pruning WHERE a = ANY ( ARRAY [ '2000-02-01' , '2010-01-01' ] :: timestamptz [ ] )","occurrences":[{"line":897,"offset":41022,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/partition_prune.sql"}],"offset":41022,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"OK","parser_stmt_type":"EXPLAIN","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/partition_prune.sql","splitter":"scanner","sql":"\nexplain (analyze, costs off, summary off, timing off, buffers off)\nselect * from stable_qual_pruning\n where a = any(array['2000-02-01', '2010-01-01']::timestamptz[])"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"ba09615cbf79aa024db6191f","line":1298,"normalized_sql":"EXPLAIN ( COSTS OFF ) SELECT * FROM onek WHERE unique1 IN ( VALUES ( 10000 ) , ( 2 ) , ( 389 ) , ( 1000 ) , ( 2000 ) , ( 10029 ) ) ORDER BY unique1","occurrences":[{"line":1298,"offset":37085,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/subselect.sql"}],"offset":37085,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"OK","parser_stmt_type":"EXPLAIN","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/subselect.sql","splitter":"scanner","sql":"\n\nEXPLAIN (COSTS OFF)\nSELECT * FROM onek\n WHERE unique1 IN (VALUES(10000), (2), (389), (1000), (2000), (10029))\n ORDER BY unique1"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ALTER","has_ast":true,"id":"ba151bb53a9f80fadf233b6a","line":144,"normalized_sql":"ALTER OPERATOR FAMILY gist_float4_ops USING gist ADD FUNCTION 11 ( float4 , float4 ) gbt_float4_sortsupport ( internal )","occurrences":[{"line":144,"offset":3928,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/btree_gist--1.7--1.8.sql"}],"offset":3928,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_OP_FAMILY_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/btree_gist--1.7--1.8.sql","splitter":"scanner","sql":"\n\nALTER OPERATOR FAMILY gist_float4_ops USING gist ADD\n\tFUNCTION\t11 (float4, float4) gbt_float4_sortsupport (internal) "} @@ -3834,7 +3821,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"bf49bb2be8e135fa24649921","line":350,"normalized_sql":"EXPLAIN ( costs OFF ) SELECT count ( * ) FROM gstest2 GROUP BY GROUPING SETS ( ( ) ) HAVING FALSE","occurrences":[{"line":350,"offset":11852,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/groupingsets.sql"}],"offset":11852,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"OK","parser_stmt_type":"EXPLAIN","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/groupingsets.sql","splitter":"scanner","sql":"\n\n-- test pushdown of degenerate HAVING clause\nexplain (costs off)\nselect count(*) from gstest2 group by grouping sets (()) having false"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"bf65d383e408ee3c2d290fb9","line":939,"normalized_sql":"SELECT conrelid :: regclass , conname , contype , conkey , ( SELECT attname FROM pg_attribute WHERE attrelid = conrelid AND attnum = conkey [ 1 ] ) , coninhcount , conislocal , connoinherit FROM pg_constraint WHERE contype = 'n' AND conrelid :: regclass :: TEXT LIKE 'inh\\_nn\\_%' ORDER BY 2 , 1","occurrences":[{"line":939,"offset":36982,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql"}],"offset":36982,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql","splitter":"scanner","sql":"\nselect conrelid::regclass, conname, contype, conkey,\n (select attname from pg_attribute where attrelid = conrelid and attnum = conkey[1]),\n coninhcount, conislocal, connoinherit\n from pg_constraint where contype = 'n' and\n conrelid::regclass::text like 'inh\\_nn\\_%'\n order by 2, 1"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"bf7e27ff43f7acf8d67751f6","line":131,"normalized_sql":"CREATE OPERATOR > ( LEFTARG = int_custom , RIGHTARG = int_custom , FUNCTION = int_custom_gt , COMMUTATOR = < , NEGATOR = <= , RESTRICT = scalargtsel , JOIN = scalargtjoinsel )","occurrences":[{"line":131,"offset":2890,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/test_custom_types/test_custom_types--1.0.sql"}],"offset":2890,"oracle_node":"PG_QUERY__NODE__NODE_DEFINE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/test_custom_types/test_custom_types--1.0.sql","splitter":"scanner","sql":"\n\nCREATE OPERATOR > (\n LEFTARG = int_custom,\n RIGHTARG = int_custom,\n FUNCTION = int_custom_gt,\n COMMUTATOR = <,\n NEGATOR = <=,\n RESTRICT = scalargtsel,\n JOIN = scalargtjoinsel\n)"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SET","has_ast":true,"id":"bf92167628b07677b6aa8424","line":193,"normalized_sql":"SET LOCAL search_path = ctl_schema , public","occurrences":[{"line":193,"offset":8679,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_table_like.sql"}],"offset":8679,"oracle_node":"PG_QUERY__NODE__NODE_VARIABLE_SET_STMT","parser_status":"OK","parser_stmt_type":"SET","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_table_like.sql","splitter":"scanner","sql":"\nSET LOCAL search_path = ctl_schema, public"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"CREATE","has_ast":true,"id":"bf989ab8e8a6499e539ef956","line":14,"normalized_sql":"CREATE RECURSIVE VIEW nums_1_100 ( n ) AS VALUES ( 1 ) UNION ALL SELECT n + 1 FROM nums_1_100 WHERE n < 100","occurrences":[{"line":14,"offset":209,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/test_ddl_deparse/sql/create_view.sql"}],"offset":209,"oracle_node":"PG_QUERY__NODE__NODE_VIEW_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"RECURSIVE VIEW nums_1_100 (n) AS\n VALUES (1)\nUNION ALL\n SELECT n+1 FROM nums_1_100 WHERE n < 100","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/test_ddl_deparse/sql/create_view.sql","splitter":"parser","sql":"CREATE RECURSIVE VIEW nums_1_100 (n) AS\n VALUES (1)\nUNION ALL\n SELECT n+1 FROM nums_1_100 WHERE n < 100"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"DROP","has_ast":true,"id":"bfae2d34ae17fabdb244d0d9","line":62,"normalized_sql":"DROP TABLE gin_check_multicolumn","occurrences":[{"line":62,"offset":2457,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/amcheck/sql/check_gin.sql"}],"offset":2457,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"OK","parser_stmt_type":"DROP","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/amcheck/sql/check_gin.sql","splitter":"parser","sql":"DROP TABLE gin_check_multicolumn"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"CREATE","has_ast":true,"id":"bfb458da8a6e223c5668a9d7","line":229,"normalized_sql":"CREATE RULE base_tbl_log AS ON INSERT TO rw_view1 DO ALSO INSERT INTO base_tbl_hist ( a , b ) VALUES ( NEW . a , NEW . b )","occurrences":[{"line":229,"offset":9941,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/updatable_views.sql"}],"offset":9941,"oracle_node":"PG_QUERY__NODE__NODE_RULE_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"RULE base_tbl_log AS ON INSERT TO rw_view1 DO ALSO\n INSERT INTO base_tbl_hist(a,b) VALUES(new.a, new.b)","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/updatable_views.sql","splitter":"scanner","sql":"\n\nCREATE RULE base_tbl_log AS ON INSERT TO rw_view1 DO ALSO\n INSERT INTO base_tbl_hist(a,b) VALUES(new.a, new.b)"} @@ -4145,7 +4131,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"ce6db2b90152a2a56bb67ffc","line":1505,"normalized_sql":"CREATE TABLE phv_boolpart ( a bool , b TEXT ) PARTITION BY list ( a )","occurrences":[{"line":1505,"offset":65420,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/partition_prune.sql"}],"offset":65420,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/partition_prune.sql","splitter":"scanner","sql":"\n\n-- BooleanTest: IS TRUE with PHV-wrapped boolean partition key\ncreate table phv_boolpart (a bool, b text) partition by list (a)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"DROP","has_ast":true,"id":"ce72c3590304d624c6b0b030","line":276,"normalized_sql":"DROP TABLE distinct_tbl","occurrences":[{"line":276,"offset":7592,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/select_distinct.sql"}],"offset":7592,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"OK","parser_stmt_type":"DROP","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/select_distinct.sql","splitter":"parser","sql":"DROP TABLE distinct_tbl"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"ce7b29595cd357d3d5cfb9e8","line":78,"normalized_sql":"EXPLAIN ( COSTS OFF ) SELECT DISTINCT ON ( y , x ) x , y FROM ( SELECT * FROM distinct_on_tbl ORDER BY x , z , y ) s ORDER BY y , x , z","occurrences":[{"line":78,"offset":2715,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/select_distinct_on.sql"}],"offset":2715,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"OK","parser_stmt_type":"EXPLAIN","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/select_distinct_on.sql","splitter":"parser","sql":"EXPLAIN (COSTS OFF)\nSELECT DISTINCT ON (y, x) x, y FROM (select * from distinct_on_tbl order by x, z, y) s ORDER BY y, x, z"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"SELECT","has_ast":true,"id":"ce7da3e2130168aef6c19eb9","line":17,"normalized_sql":"SELECT * , octet_length ( 用語 ) FROM 計算機用語","occurrences":[{"line":17,"offset":1076,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":1076,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"用語) from 計算機用語","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select *,octet_length(用語) from 計算機用語"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"ce808cef6ebd423458527fa1","line":831,"normalized_sql":"SELECT json_strip_nulls ( '[1,{\"a\":1,\"b\":null,\"c\":2},3]' , TRUE )","occurrences":[{"line":831,"offset":32751,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/json.sql"}],"offset":32751,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/json.sql","splitter":"parser","sql":"select json_strip_nulls('[1,{\"a\":1,\"b\":null,\"c\":2},3]', true)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"INSERT","has_ast":true,"id":"ce87be54197005148234280f","line":2767,"normalized_sql":"INSERT INTO defer_trig VALUES ( 4 )","occurrences":[{"line":2767,"offset":98526,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/triggers.sql"}],"offset":98526,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/triggers.sql","splitter":"scanner","sql":"\ninsert into defer_trig values (4)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"ce888a14e1915217b67206c0","line":624,"normalized_sql":"CREATE TABLE notnull_tbl1 ( a INTEGER NOT NULL NOT NULL )","occurrences":[{"line":624,"offset":18370,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/constraints.sql"}],"offset":18370,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/constraints.sql","splitter":"scanner","sql":"\n\n-- verify constraints created for NOT NULL clauses\nCREATE TABLE notnull_tbl1 (a INTEGER NOT NULL NOT NULL)"} @@ -4179,7 +4164,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"ALTER","has_ast":true,"id":"cfc5ddeeee0cd193f503a6e1","line":124,"normalized_sql":"ALTER SUBSCRIPTION regress_testsub ENABLE","occurrences":[{"line":124,"offset":5858,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/subscription.sql"},{"line":231,"offset":9234,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/subscription.sql"}],"offset":5858,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_SUBSCRIPTION_STMT","parser_status":"ERROR","parser_stmt_type":"ALTER","remaining":"SUBSCRIPTION regress_testsub ENABLE","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/subscription.sql","splitter":"scanner","sql":"\nALTER SUBSCRIPTION regress_testsub ENABLE"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ANALYZE","has_ast":true,"id":"cfd4a32da9e5340d899a529a","line":1583,"normalized_sql":"ANALYZE tuplesest_tab","occurrences":[{"line":1583,"offset":66123,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql"}],"offset":66123,"oracle_node":"PG_QUERY__NODE__NODE_VACUUM_STMT","parser_status":"OK","parser_stmt_type":"ANALYZE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql","splitter":"scanner","sql":"\nanalyze tuplesest_tab"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SET","has_ast":true,"id":"cff94d1cf0b77c4a8d2670fe","line":525,"normalized_sql":"SET SESSION AUTHORIZATION regress_parallel_worker","occurrences":[{"line":525,"offset":17189,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/select_parallel.sql"}],"offset":17189,"oracle_node":"PG_QUERY__NODE__NODE_VARIABLE_SET_STMT","parser_status":"OK","parser_stmt_type":"SET","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/select_parallel.sql","splitter":"scanner","sql":"\nset session authorization regress_parallel_worker"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"VACUUM","has_ast":true,"id":"d000619583de4f04de5994cc","line":8,"normalized_sql":"VACUUM 計算機用語","occurrences":[{"line":8,"offset":549,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":549,"oracle_node":"PG_QUERY__NODE__NODE_VACUUM_STMT","parser_status":"ERROR","parser_stmt_type":"VACUUM","remaining":"計算機用語","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"vacuum 計算機用語"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"CREATE","has_ast":true,"id":"d00a70be6d075583b2b836e7","line":184,"normalized_sql":"CREATE OR REPLACE FUNCTION integer_pl_date ( INTEGER , date ) RETURNS date LANGUAGE SQL IMMUTABLE PARALLEL SAFE STRICT COST 1 RETURN $2 + $1","occurrences":[{"line":184,"offset":5282,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/backend/catalog/system_functions.sql"}],"offset":5282,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_FUNCTION_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"RETURN $2 + $1","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/backend/catalog/system_functions.sql","splitter":"parser","sql":"CREATE OR REPLACE FUNCTION integer_pl_date(integer, date)\n RETURNS date\n LANGUAGE sql\n IMMUTABLE PARALLEL SAFE STRICT COST 1\nRETURN $2 + $1"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"d00e00edad408063965574a1","line":2094,"normalized_sql":"CREATE ROLE regress_grantor1","occurrences":[{"line":2094,"offset":79405,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/privileges.sql"}],"offset":79405,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_ROLE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/privileges.sql","splitter":"scanner","sql":"\n\n-- grantor selection\nCREATE ROLE regress_grantor1"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ALTER","has_ast":true,"id":"d01009f6b97192cc905aab45","line":899,"normalized_sql":"ALTER TABLE notnull_chld0 DROP CONSTRAINT nn_chld0","occurrences":[{"line":899,"offset":30441,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/constraints.sql"}],"offset":30441,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/constraints.sql","splitter":"scanner","sql":" --error\n\nALTER TABLE notnull_chld0 DROP CONSTRAINT nn_chld0"} @@ -4192,6 +4176,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"d084db7c1d5684671646c797","line":24,"normalized_sql":"CREATE OR REPLACE FUNCTION test_create_multixact ( ) RETURNS xid AS 'MODULE_PATHNAME' , 'test_create_multixact' LANGUAGE C","occurrences":[{"line":24,"offset":1322,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/test_slru/test_slru--1.0.sql"}],"offset":1322,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_FUNCTION_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/test_slru/test_slru--1.0.sql","splitter":"scanner","sql":"\n\n\nCREATE OR REPLACE FUNCTION test_create_multixact() RETURNS xid\n AS 'MODULE_PATHNAME', 'test_create_multixact' LANGUAGE C"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"d09f61d88f287970e4a7fc3b","line":818,"normalized_sql":"EXPLAIN ( COSTS OFF ) SELECT count ( * ) FROM tenk1 WHERE hundred = 42 AND ( thousand = 42 OR thousand = 99 OR tenthous < 2 ) OR thousand = 41","occurrences":[{"line":818,"offset":29086,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_index.sql"}],"offset":29086,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"OK","parser_stmt_type":"EXPLAIN","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_index.sql","splitter":"scanner","sql":"\n\nEXPLAIN (COSTS OFF)\nSELECT count(*) FROM tenk1\n WHERE hundred = 42 AND (thousand = 42 OR thousand = 99 OR tenthous < 2) OR thousand = 41"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ALTER","has_ast":true,"id":"d0a547c455e00f85e294fc8e","line":1669,"normalized_sql":"ALTER TABLE fk_partitioned_fk_6 ATTACH PARTITION fk_partitioned_fk_6_1 FOR VALUES IN ( 1 )","occurrences":[{"line":1669,"offset":61624,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/foreign_key.sql"}],"offset":61624,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/foreign_key.sql","splitter":"scanner","sql":"\nALTER TABLE fk_partitioned_fk_6 ATTACH PARTITION fk_partitioned_fk_6_1 FOR VALUES IN (1)"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"SET","has_ast":false,"id":"d0c6c1770b30efe94cdf88ff","line":156,"normalized_sql":"SET LOCAL TIME ZONE - 8","occurrences":[{"line":156,"offset":5152,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/json.sql"},{"line":119,"offset":3918,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/jsonb.sql"}],"offset":5152,"oracle_node":"PG_QUERY__NODE__NODE_VARIABLE_SET_STMT","parser_status":"ERROR","parser_stmt_type":"SET","remaining":"ZONE -8","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/json.sql","splitter":"parser","sql":"SET LOCAL TIME ZONE -8"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"PARTIAL","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"d0d86e169a6d9b5bc197cfad","line":35,"normalized_sql":"EXPLAIN ( costs OFF ) INSERT INTO insertconflicttest VALUES ( 0 , 'Crowberry' ) ON CONFLICT ( KEY , fruit COLLATE \"C\" ) DO NOTHING","occurrences":[{"line":35,"offset":2072,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/insert_conflict.sql"}],"offset":2072,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"PARTIAL","parser_stmt_type":"EXPLAIN","remaining":") do nothing","result":"PARTIAL","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/insert_conflict.sql","splitter":"parser","sql":"explain (costs off) insert into insertconflicttest values(0, 'Crowberry') on conflict (key, fruit collate \"C\") do nothing"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"d0ecf4c70d6866a8998ad1d7","line":703,"normalized_sql":"CREATE TABLE ATACC1 ( a INT NOT NULL NO INHERIT ) PARTITION BY LIST ( a )","occurrences":[{"line":703,"offset":22205,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/constraints.sql"}],"offset":22205,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/constraints.sql","splitter":"scanner","sql":"\n\n-- NOT NULL NO INHERIT is not possible on partitioned tables\nCREATE TABLE ATACC1 (a int NOT NULL NO INHERIT) PARTITION BY LIST (a)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"d1005d5b7e36cb98bbe1d394","line":1432,"normalized_sql":"CREATE TABLE fk_partitioned_pk_1 PARTITION OF fk_partitioned_pk FOR VALUES FROM ( 0 , 0 ) TO ( 1000 , 1000 )","occurrences":[{"line":1432,"offset":49509,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/foreign_key.sql"}],"offset":49509,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/foreign_key.sql","splitter":"scanner","sql":"\nCREATE TABLE fk_partitioned_pk_1 PARTITION OF fk_partitioned_pk FOR VALUES FROM (0,0) TO (1000,1000)"} @@ -4346,7 +4331,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SET","has_ast":true,"id":"d8902bac66c59364b8c1b4fd","line":770,"normalized_sql":"SET LOCAL parallel_tuple_cost = 0","occurrences":[{"line":770,"offset":20443,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/join.sql"}],"offset":20443,"oracle_node":"PG_QUERY__NODE__NODE_VARIABLE_SET_STMT","parser_status":"OK","parser_stmt_type":"SET","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/join.sql","splitter":"parser","sql":"set local parallel_tuple_cost=0"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"d89453e01925ba2208c831f5","line":113,"normalized_sql":"CREATE FUNCTION gbt_ts_sortsupport ( internal ) RETURNS void AS 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE PARALLEL SAFE STRICT","occurrences":[{"line":113,"offset":2875,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/btree_gist--1.7--1.8.sql"}],"offset":2875,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_FUNCTION_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/btree_gist--1.7--1.8.sql","splitter":"scanner","sql":"\n\nCREATE FUNCTION gbt_ts_sortsupport(internal)\nRETURNS void\nAS 'MODULE_PATHNAME'\nLANGUAGE C IMMUTABLE PARALLEL SAFE STRICT"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"ALTER","has_ast":true,"id":"d898cefe1c7d30a134f04b9f","line":1048,"normalized_sql":"ALTER EXTENSION postgres_fdw DROP OPERATOR public . <^ ( INT , INT )","occurrences":[{"line":1048,"offset":55093,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql"}],"offset":55093,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_EXTENSION_CONTENTS_STMT","parser_status":"ERROR","parser_stmt_type":"ALTER","remaining":"extension postgres_fdw drop operator public.<^(int, int)","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql","splitter":"scanner","sql":"\nalter extension postgres_fdw drop operator public.<^(int, int)"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"SELECT","has_ast":true,"id":"d8a215ade168c188f2a65818","line":9,"normalized_sql":"SELECT * FROM 計算機用語","occurrences":[{"line":9,"offset":573,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":573,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"計算機用語","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from 計算機用語"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"CREATE","has_ast":true,"id":"d8a4cab3ba9ce68c90d447d6","line":355,"normalized_sql":"CREATE FUNCTION functest_sri2 ( ) RETURNS SETOF INT LANGUAGE SQL STABLE BEGIN ATOMIC SELECT * FROM functest3 ; END","occurrences":[{"line":355,"offset":11438,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_function_sql.sql"}],"offset":11438,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_FUNCTION_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"BEGIN ATOMIC\n SELECT * FROM functest3;\nEND","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_function_sql.sql","splitter":"parser","sql":"CREATE FUNCTION functest_sri2() RETURNS SETOF int\nLANGUAGE SQL\nSTABLE\nBEGIN ATOMIC\n SELECT * FROM functest3;\nEND"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"DO","has_ast":true,"id":"d8ad203e9ec97e01fc65a5ad","line":320,"normalized_sql":"DO LANGUAGE plpgsql $$\nBEGIN\n BEGIN\n INSERT INTO test1 (a) VALUES (1);\n COMMIT;\n INSERT INTO test1 (a) VALUES (1/0);\n COMMIT;\n EXCEPTION\n WHEN division_by_zero THEN\n RAISE NOTICE 'caught division_by_zero';\n END;\nEND;\n$$","occurrences":[{"line":320,"offset":5169,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpgsql/src/sql/plpgsql_transaction.sql"}],"offset":5169,"oracle_node":"PG_QUERY__NODE__NODE_DO_STMT","parser_status":"OK","parser_stmt_type":"DO","remaining":"plpgsql $$\nBEGIN\n BEGIN\n INSERT INTO test1 (a) VALUES (1);\n COMMIT;\n INSERT INTO test1 (a) VALUES (1/0);\n COMMIT;\n EXCEPTION\n WHEN division_by_zero THEN\n RAISE NOTICE 'caught division_by_zero';\n END;\nEND;\n$$","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpgsql/src/sql/plpgsql_transaction.sql","splitter":"parser","sql":"DO LANGUAGE plpgsql $$\nBEGIN\n BEGIN\n INSERT INTO test1 (a) VALUES (1);\n COMMIT;\n INSERT INTO test1 (a) VALUES (1/0);\n COMMIT;\n EXCEPTION\n WHEN division_by_zero THEN\n RAISE NOTICE 'caught division_by_zero';\n END;\nEND;\n$$"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ALTER","has_ast":true,"id":"d8c3f540acb77df6dae93529","line":974,"normalized_sql":"ALTER TABLE temporal3 DROP COLUMN valid_at CASCADE","occurrences":[{"line":974,"offset":41151,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql"}],"offset":41151,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql","splitter":"scanner","sql":"\nALTER TABLE temporal3 DROP COLUMN valid_at CASCADE"} @@ -4522,7 +4506,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"e0ec7eef79ed8e45a390a282","line":3078,"normalized_sql":"EXPLAIN ( costs OFF ) SELECT * FROM sl t1 , sl t2 WHERE t1 . a = t2 . a AND t1 . b = 1 AND t2 . b = 2","occurrences":[{"line":3078,"offset":87652,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/join.sql"}],"offset":87652,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"OK","parser_stmt_type":"EXPLAIN","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/join.sql","splitter":"parser","sql":"explain (costs off)\nselect * from sl t1, sl t2 where t1.a = t2.a and t1.b = 1 and t2.b = 2"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"e107aff925a5b1f4b8e143a8","line":120,"normalized_sql":"SELECT casefold ( 'AbCd 123 #$% ıiIİ ẞ ß DŽDždž Σσς' COLLATE \"en-x-icu\" )","occurrences":[{"line":120,"offset":3080,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.icu.utf8.sql"}],"offset":3080,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.icu.utf8.sql","splitter":"scanner","sql":"\nSELECT casefold('AbCd 123 #$% ıiIİ ẞ ß DŽDždž Σσς' COLLATE \"en-x-icu\")"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"e12adc429f0344e1a8f36753","line":63,"normalized_sql":"CREATE FUNCTION gbt_int4_sortsupport ( internal ) RETURNS void AS 'MODULE_PATHNAME' LANGUAGE C IMMUTABLE PARALLEL SAFE STRICT","occurrences":[{"line":63,"offset":1616,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/btree_gist--1.7--1.8.sql"}],"offset":1616,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_FUNCTION_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/btree_gist--1.7--1.8.sql","splitter":"scanner","sql":"\n\nCREATE FUNCTION gbt_int4_sortsupport(internal)\nRETURNS void\nAS 'MODULE_PATHNAME'\nLANGUAGE C IMMUTABLE PARALLEL SAFE STRICT"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SET","has_ast":true,"id":"e1356d14e97ce520c935bed8","line":634,"normalized_sql":"SET TRANSACTION SNAPSHOT 'FFF-FFF-F'","occurrences":[{"line":634,"offset":17793,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/transactions.sql"}],"offset":17793,"oracle_node":"PG_QUERY__NODE__NODE_VARIABLE_SET_STMT","parser_status":"OK","parser_stmt_type":"SET","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/transactions.sql","splitter":"scanner","sql":"\nSET TRANSACTION SNAPSHOT 'FFF-FFF-F'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"e13877ab2bd5768d8e7ffe29","line":72,"normalized_sql":"SELECT SUBSTRING ( truncated_with_nul , 5 , 1 ) FROM regress_encoding","occurrences":[{"line":72,"offset":3091,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/encoding.sql"}],"offset":3091,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/encoding.sql","splitter":"scanner","sql":"\nSELECT substring(truncated_with_nul, 5, 1) FROM regress_encoding"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"DO","has_ast":true,"id":"e13c067370a87d0502f385b3","line":308,"normalized_sql":"DO $$\nBEGIN\n\tSELECT plpy_raise_spiexception();\nEXCEPTION WHEN division_by_zero THEN\n\t-- NOOP\nEND\n$$ LANGUAGE plpgsql","occurrences":[{"line":308,"offset":6705,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpython/sql/plpython_error.sql"}],"offset":6705,"oracle_node":"PG_QUERY__NODE__NODE_DO_STMT","parser_status":"OK","parser_stmt_type":"DO","remaining":"LANGUAGE plpgsql","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpython/sql/plpython_error.sql","splitter":"scanner","sql":"\n\nDO $$\nBEGIN\n\tSELECT plpy_raise_spiexception();\nEXCEPTION WHEN division_by_zero THEN\n\t-- NOOP\nEND\n$$ LANGUAGE plpgsql"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"GRANT","has_ast":true,"id":"e14965f3b086b4843a21cd80","line":400,"normalized_sql":"GRANT DELETE ON atest3 TO GROUP regress_priv_group2","occurrences":[{"line":400,"offset":15733,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/privileges.sql"}],"offset":15733,"oracle_node":"PG_QUERY__NODE__NODE_GRANT_STMT","parser_status":"ERROR","parser_stmt_type":"GRANT","remaining":"GROUP regress_priv_group2","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/privileges.sql","splitter":"scanner","sql":"\nGRANT DELETE ON atest3 TO GROUP regress_priv_group2"} @@ -4560,7 +4543,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"ALTER","has_ast":true,"id":"e2c2eb66b96bb6894c2749ed","line":140,"normalized_sql":"ALTER SUBSCRIPTION regress_testsub_foo SET ( synchronous_commit = LOCAL )","occurrences":[{"line":140,"offset":6197,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/subscription.sql"}],"offset":6197,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_SUBSCRIPTION_STMT","parser_status":"ERROR","parser_stmt_type":"ALTER","remaining":"SUBSCRIPTION regress_testsub_foo SET (synchronous_commit = local)","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/subscription.sql","splitter":"scanner","sql":"\nALTER SUBSCRIPTION regress_testsub_foo SET (synchronous_commit = local)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ALTER","has_ast":true,"id":"e2ce07168706a8d15887dd4d","line":259,"normalized_sql":"ALTER OPERATOR FAMILY gist_bit_ops USING gist ADD FUNCTION 12 ( \"any\" , \"any\" ) gist_translate_cmptype_btree ( INT )","occurrences":[{"line":259,"offset":8368,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/btree_gist--1.7--1.8.sql"}],"offset":8368,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_OP_FAMILY_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/btree_gist--1.7--1.8.sql","splitter":"scanner","sql":"\n\nALTER OPERATOR FAMILY gist_bit_ops USING gist ADD\n\tFUNCTION 12 (\"any\", \"any\") gist_translate_cmptype_btree (int) "} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"e2cfe46690021a315ee3038b","line":884,"normalized_sql":"EXPLAIN ( VERBOSE , costs OFF ) SELECT * FROM gtest32 t GROUP BY GROUPING SETS ( a , b , c , d , e ) HAVING c = 20","occurrences":[{"line":884,"offset":34406,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/generated_virtual.sql"}],"offset":34406,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"OK","parser_stmt_type":"EXPLAIN","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/generated_virtual.sql","splitter":"scanner","sql":"\n\nexplain (verbose, costs off)\nselect * from gtest32 t group by grouping sets (a, b, c, d, e) having c = 20"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"PARTIAL","expected_stmt_type":"INSERT","has_ast":false,"id":"e2d63e3201f2cf3bef49b5f6","line":7,"normalized_sql":"INSERT INTO 計算機用語 VALUES ( 'コンピュータプログラマー' , '人Z01下' )","occurrences":[{"line":7,"offset":461,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":461,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"PARTIAL","parser_stmt_type":"INSERT","remaining":"¨ˆ算機用語 values('コンピュータプログラマー','人Z01下')","result":"PARTIAL","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"insert into 計算機用語 values('コンピュータプログラマー','人Z01下')"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"INSERT","has_ast":true,"id":"e2d95e02a4207399b3bc2ba0","line":1132,"normalized_sql":"INSERT INTO inh_nn2 VALUES ( NULL , 'sample' , 1 )","occurrences":[{"line":1132,"offset":44790,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql"}],"offset":44790,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql","splitter":"scanner","sql":"\ninsert into inh_nn2 values(NULL, 'sample', 1)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"CREATE","has_ast":true,"id":"e2da214f47ca40f875ed1dbb","line":130,"normalized_sql":"CREATE OR REPLACE FUNCTION date_part ( TEXT , date ) RETURNS DOUBLE PRECISION LANGUAGE SQL IMMUTABLE PARALLEL SAFE STRICT COST 1 RETURN date_part ( $1 , CAST ( $2 AS TIMESTAMP ) )","occurrences":[{"line":130,"offset":3896,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/backend/catalog/system_functions.sql"}],"offset":3896,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_FUNCTION_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"RETURN date_part($1, cast($2 as timestamp))","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/backend/catalog/system_functions.sql","splitter":"parser","sql":"CREATE OR REPLACE FUNCTION date_part(text, date)\n RETURNS double precision\n LANGUAGE sql\n IMMUTABLE PARALLEL SAFE STRICT COST 1\nRETURN date_part($1, cast($2 as timestamp))"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"ALTER","has_ast":true,"id":"e2dd4fe72ec57dbd7fa385bc","line":33,"normalized_sql":"ALTER SYSTEM RESET autovacuum","occurrences":[{"line":33,"offset":1341,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/unsafe_tests/sql/guc_privs.sql"}],"offset":1341,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_SYSTEM_STMT","parser_status":"ERROR","parser_stmt_type":"ALTER","remaining":"SYSTEM RESET autovacuum","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/unsafe_tests/sql/guc_privs.sql","splitter":"scanner","sql":" -- ok\nALTER SYSTEM RESET autovacuum"} @@ -4781,12 +4763,12 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"DROP","has_ast":true,"id":"eeda8ede32dc748765391616","line":310,"normalized_sql":"DROP TABLE gtest11 , gtest12","occurrences":[{"line":310,"offset":11265,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/generated_stored.sql"}],"offset":11265,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"OK","parser_stmt_type":"DROP","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/generated_stored.sql","splitter":"scanner","sql":" -- fail\nDROP TABLE gtest11, gtest12"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"eefa45aeb1044b94d77e73ea","line":1458,"normalized_sql":"CREATE TABLE phv_part_2 PARTITION OF phv_part FOR VALUES IN ( 2 )","occurrences":[{"line":1458,"offset":64105,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/partition_prune.sql"}],"offset":64105,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/partition_prune.sql","splitter":"scanner","sql":"\ncreate table phv_part_2 partition of phv_part for values in (2)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"DROP","has_ast":true,"id":"eefcba6d2aafb6a6a760fefe","line":34,"normalized_sql":"DROP CAST ( TEXT AS casttesttype )","occurrences":[{"line":34,"offset":869,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_cast.sql"}],"offset":869,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"ERROR","parser_stmt_type":"DROP","remaining":"CAST (text AS casttesttype)","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_cast.sql","splitter":"parser","sql":"DROP CAST (text AS casttesttype)"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"SELECT","has_ast":true,"id":"ef06fdedf511011e4a3f3d66","line":14,"normalized_sql":"SELECT * FROM 計算機用語 WHERE 用語 ~ 'コンピュータ[デグ]'","occurrences":[{"line":14,"offset":869,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":869,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"計算機用語 where 用語 ~ 'コンピュータ[デグ]'","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from 計算機用語 where 用語 ~ 'コンピュータ[デグ]'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ALTER","has_ast":true,"id":"ef181a9c0e0f7ea5d400e442","line":268,"normalized_sql":"ALTER INDEX idxpart_expr_idx ATTACH PARTITION idxpart1_expr_idx","occurrences":[{"line":268,"offset":12370,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/indexing.sql"},{"line":295,"offset":13714,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/indexing.sql"},{"line":303,"offset":14148,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/indexing.sql"}],"offset":12370,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/indexing.sql","splitter":"scanner","sql":"\nalter index idxpart_expr_idx attach partition idxpart1_expr_idx"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"ef252fe4641b07fee45f1413","line":104,"normalized_sql":"SELECT encrypt ( '' , 'foo' , 'aes-cfb' )","occurrences":[{"line":104,"offset":2870,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pgcrypto/sql/rijndael.sql"}],"offset":2870,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pgcrypto/sql/rijndael.sql","splitter":"parser","sql":"select encrypt('', 'foo', 'aes-cfb')"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"COMMENT","has_ast":true,"id":"ef3ea496c755e3812512b177","line":255,"normalized_sql":"COMMENT ON COLUMN ctl_table . b IS 'Column b'","occurrences":[{"line":255,"offset":10620,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_table_like.sql"}],"offset":10620,"oracle_node":"PG_QUERY__NODE__NODE_COMMENT_STMT","parser_status":"OK","parser_stmt_type":"COMMENT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_table_like.sql","splitter":"scanner","sql":"\nCOMMENT ON COLUMN ctl_table.b IS 'Column b'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"DROP","has_ast":true,"id":"ef5282df1eb2bba76ee5184e","line":334,"normalized_sql":"DROP FUNCTION composite_f","occurrences":[{"line":334,"offset":14456,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_stat_statements/sql/squashing.sql"}],"offset":14456,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"OK","parser_stmt_type":"DROP","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_stat_statements/sql/squashing.sql","splitter":"scanner","sql":"\nDROP FUNCTION composite_f"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"ef5a525a990a7191c13a4323","line":972,"normalized_sql":"EXPLAIN ( ANALYZE , costs OFF , summary OFF , timing OFF , buffers OFF ) EXECUTE mt_q1 ( 15 )","occurrences":[{"line":972,"offset":43894,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/partition_prune.sql"}],"offset":43894,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"OK","parser_stmt_type":"EXPLAIN","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/partition_prune.sql","splitter":"scanner","sql":"\n\nexplain (analyze, costs off, summary off, timing off, buffers off) execute mt_q1(15)"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"SET","has_ast":false,"id":"ef6e0e1253c4a671d4228c3e","line":656,"normalized_sql":"SET LOCAL TIME ZONE 'Europe/Paris'","occurrences":[{"line":656,"offset":29242,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/timestamptz.sql"}],"offset":29242,"oracle_node":"PG_QUERY__NODE__NODE_VARIABLE_SET_STMT","parser_status":"ERROR","parser_stmt_type":"SET","remaining":"ZONE 'Europe/Paris'","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/timestamptz.sql","splitter":"scanner","sql":"\nSET LOCAL TIME ZONE 'Europe/Paris'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"CREATE","has_ast":true,"id":"ef73f520a22448ae828e6a38","line":52,"normalized_sql":"CREATE RULE qqq AS ON UPDATE TO copydml_test WHERE NEW . t <> 'f' DO INSTEAD DELETE FROM copydml_test","occurrences":[{"line":52,"offset":2231,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/copydml.sql"}],"offset":2231,"oracle_node":"PG_QUERY__NODE__NODE_RULE_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"rule qqq as on update to copydml_test where new.t <> 'f' do instead delete from copydml_test","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/copydml.sql","splitter":"scanner","sql":"\ncreate rule qqq as on update to copydml_test where new.t <> 'f' do instead delete from copydml_test"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"ef7944daac862b692193f3c0","line":617,"normalized_sql":"EXPLAIN ( VERBOSE , COSTS OFF ) SELECT * FROM test1cs t1 , test3cs t2 WHERE t1 . x = t2 . x COLLATE case_insensitive ORDER BY 1 , 2","occurrences":[{"line":617,"offset":22240,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.icu.utf8.sql"}],"offset":22240,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"OK","parser_stmt_type":"EXPLAIN","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.icu.utf8.sql","splitter":"scanner","sql":"\n\n--\n-- A unique index under one collation does not prove uniqueness under\n-- another, so the planner must not use such a proof for any optimization.\n--\n\n-- Ensure that we do not use inner-unique join execution\nEXPLAIN (VERBOSE, COSTS OFF)\nSELECT * FROM test1cs t1, test3cs t2\nWHERE t1.x = t2.x COLLATE case_insensitive\nORDER BY 1, 2"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"ef917d6f8532ef10518b1e2b","line":1676,"normalized_sql":"SELECT * FROM tststats . priv_test_tbl WHERE a <<< 0 OR b <<< 0","occurrences":[{"line":1676,"offset":75276,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/stats_ext.sql"},{"line":1704,"offset":76835,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/stats_ext.sql"}],"offset":75276,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/stats_ext.sql","splitter":"scanner","sql":" -- Permission denied\nSELECT * FROM tststats.priv_test_tbl WHERE a <<< 0 OR b <<< 0"} @@ -4874,7 +4856,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"f3293c3ca6098fed4f63b02a","line":904,"normalized_sql":"CREATE TABLE inh_parent ( )","occurrences":[{"line":904,"offset":35422,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql"}],"offset":35422,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql","splitter":"scanner","sql":"\n\n\n-- Test a not-null addition that must walk down the hierarchy\nCREATE TABLE inh_parent ()"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"f32b9fc1a65d8f8460b8f0c9","line":345,"normalized_sql":"EXPLAIN ( costs OFF ) SELECT a , b , count ( * ) FROM gstest2 GROUP BY ROLLUP ( a ) , b HAVING b > 1","occurrences":[{"line":345,"offset":11689,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/groupingsets.sql"}],"offset":11689,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"OK","parser_stmt_type":"EXPLAIN","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/groupingsets.sql","splitter":"scanner","sql":"\n\nexplain (costs off)\nselect a, b, count(*) from gstest2 group by rollup(a), b having b > 1"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"f3402610444baaab90cd7ef3","line":59,"normalized_sql":"SELECT * FROM test_squash WHERE id IN ( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 ) AND DATA = 2","occurrences":[{"line":59,"offset":2142,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_stat_statements/sql/squashing.sql"}],"offset":2142,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_stat_statements/sql/squashing.sql","splitter":"scanner","sql":"\nSELECT * FROM test_squash WHERE id IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) AND data = 2"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"SELECT","has_ast":true,"id":"f3456f7f77637b07a7bb3fe4","line":12,"normalized_sql":"SELECT * FROM 計算機用語 WHERE 分類コード LIKE '_Z01_'","occurrences":[{"line":12,"offset":739,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":739,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"計算機用語 where 分類コード like '_Z01_'","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from 計算機用語 where 分類コード like '_Z01_'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"INSERT","has_ast":true,"id":"f353e6227d8364eed9125e1f","line":1144,"normalized_sql":"INSERT INTO pagg_tab5 ( b , c ) SELECT substr ( 'abAB' , ( i % 4 ) + 1 , 1 ) , substr ( 'abAB' , ( i % 2 ) + 1 , 1 ) FROM generate_series ( 0 , 5 ) i","occurrences":[{"line":1144,"offset":48552,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.icu.utf8.sql"}],"offset":48552,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.icu.utf8.sql","splitter":"scanner","sql":"\nINSERT INTO pagg_tab5 (b, c) SELECT substr('abAB', (i % 4) + 1 , 1), substr('abAB', (i % 2) + 1 , 1) FROM generate_series(0, 5) i"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"CREATE","has_ast":true,"id":"f3552df4f4679386ebece8fe","line":115,"normalized_sql":"CREATE PUBLICATION testpub4 FOR TABLE ONLY testpub_tbl3","occurrences":[{"line":115,"offset":4699,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/publication.sql"}],"offset":4699,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_PUBLICATION_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"PUBLICATION testpub4 FOR TABLE ONLY testpub_tbl3","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/publication.sql","splitter":"scanner","sql":"\nCREATE PUBLICATION testpub4 FOR TABLE ONLY testpub_tbl3"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"f3561c58a291e09e2c0d47b5","line":1834,"normalized_sql":"EXPLAIN ( COSTS OFF ) SELECT * FROM sb_1 a , sb_2 b WHERE a . x = b . x AND a . y = b . y AND a . z = b . z","occurrences":[{"line":1834,"offset":82675,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/stats_ext.sql"},{"line":1842,"offset":83272,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/stats_ext.sql"}],"offset":82675,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"OK","parser_stmt_type":"EXPLAIN","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/stats_ext.sql","splitter":"scanner","sql":"\n\n-- During hash join estimation, the number of distinct values on each column\n-- is calculated. The optimizer selects the smallest number of distinct values\n-- and the largest hash bucket size. The optimizer decides that the hash\n-- bucket size is quite big because there are possibly many correlations.\nEXPLAIN (COSTS OFF) -- Choose merge join\nSELECT * FROM sb_1 a, sb_2 b WHERE a.x = b.x AND a.y = b.y AND a.z = b.z"} @@ -5000,7 +4981,6 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"fa553d95071c0c32509721b3","line":103,"normalized_sql":"SELECT explain_filter ( $$\nEXPLAIN (BUFFERS OFF, COSTS OFF, SUMMARY OFF, TIMING OFF, ANALYZE, DEBUG)\nSELECT * FROM vegetables v1, vegetables v2 WHERE v1.id = v2.id;\n$$ )","occurrences":[{"line":103,"offset":3649,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_overexplain/sql/pg_overexplain.sql"}],"offset":3649,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_overexplain/sql/pg_overexplain.sql","splitter":"parser","sql":"SELECT explain_filter($$\nEXPLAIN (BUFFERS OFF, COSTS OFF, SUMMARY OFF, TIMING OFF, ANALYZE, DEBUG)\nSELECT * FROM vegetables v1, vegetables v2 WHERE v1.id = v2.id;\n$$)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"CREATE","has_ast":true,"id":"fa62f44cb08c637d2abbe1d1","line":1254,"normalized_sql":"CREATE RULE rule2 AS ON UPDATE TO rule_merge1 DO INSTEAD UPDATE rule_merge2 SET a = NEW . a , b = NEW . b WHERE a = OLD . a","occurrences":[{"line":1254,"offset":41055,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/rules.sql"}],"offset":41055,"oracle_node":"PG_QUERY__NODE__NODE_RULE_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"RULE rule2 AS ON UPDATE TO rule_merge1\n\tDO INSTEAD UPDATE rule_merge2 SET a = NEW.a, b = NEW.b\n\tWHERE a = OLD.a","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/rules.sql","splitter":"scanner","sql":"\nCREATE RULE rule2 AS ON UPDATE TO rule_merge1\n\tDO INSTEAD UPDATE rule_merge2 SET a = NEW.a, b = NEW.b\n\tWHERE a = OLD.a"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"DO","has_ast":true,"id":"fa68a1184dbc662c9febf9cb","line":217,"normalized_sql":"DO LANGUAGE plpgsql $$\nDECLARE\n r RECORD;\nBEGIN\n FOR r IN SELECT * FROM test2 ORDER BY x LOOP\n INSERT INTO test1 (a) VALUES (r.x);\n ROLLBACK;\n END LOOP;\nEND;\n$$","occurrences":[{"line":217,"offset":3391,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpgsql/src/sql/plpgsql_transaction.sql"}],"offset":3391,"oracle_node":"PG_QUERY__NODE__NODE_DO_STMT","parser_status":"OK","parser_stmt_type":"DO","remaining":"plpgsql $$\nDECLARE\n r RECORD;\nBEGIN\n FOR r IN SELECT * FROM test2 ORDER BY x LOOP\n INSERT INTO test1 (a) VALUES (r.x);\n ROLLBACK;\n END LOOP;\nEND;\n$$","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpgsql/src/sql/plpgsql_transaction.sql","splitter":"parser","sql":"DO LANGUAGE plpgsql $$\nDECLARE\n r RECORD;\nBEGIN\n FOR r IN SELECT * FROM test2 ORDER BY x LOOP\n INSERT INTO test1 (a) VALUES (r.x);\n ROLLBACK;\n END LOOP;\nEND;\n$$"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"TRAILING_INPUT","expected_stmt_type":"SELECT","has_ast":true,"id":"fa7c7d692b7dd19ceddcaaec","line":10,"normalized_sql":"SELECT * FROM 計算機用語 WHERE 分類コード = '人Z01下'","occurrences":[{"line":10,"offset":604,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":604,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"計算機用語 where 分類コード = '人Z01下'","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from 計算機用語 where 分類コード = '人Z01下'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"ALTER","has_ast":true,"id":"fa84e21d7f1116e10338005f","line":837,"normalized_sql":"ALTER PUBLICATION testpub_default ADD TABLE pub_test . testpub_nopk","occurrences":[{"line":837,"offset":39336,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/publication.sql"}],"offset":39336,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_PUBLICATION_STMT","parser_status":"ERROR","parser_stmt_type":"ALTER","remaining":"PUBLICATION testpub_default ADD TABLE pub_test.testpub_nopk","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/publication.sql","splitter":"scanner","sql":"\nALTER PUBLICATION testpub_default ADD TABLE pub_test.testpub_nopk"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"faa5de77b2c674d14da4a21a","line":230,"normalized_sql":"CREATE TEMP TABLE tab_search_diff_2 ( a BIGINT )","occurrences":[{"line":230,"offset":7821,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_stat_statements/sql/select.sql"}],"offset":7821,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_stat_statements/sql/select.sql","splitter":"scanner","sql":"\nCREATE TEMP TABLE tab_search_diff_2 (a bigint)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"ERROR","expected_stmt_type":"ALTER","has_ast":true,"id":"faa7e5f23b2ac74375864cfb","line":505,"normalized_sql":"ALTER PUBLICATION testpub_fortable ADD TABLE testpub_tbl5 ( a , d )","occurrences":[{"line":505,"offset":24094,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/publication.sql"}],"offset":24094,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_PUBLICATION_STMT","parser_status":"ERROR","parser_stmt_type":"ALTER","remaining":"PUBLICATION testpub_fortable ADD TABLE testpub_tbl5 (a, d)","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/publication.sql","splitter":"scanner","sql":"\n\n-- ok: stored generated column \"d\" can be in the list too\nALTER PUBLICATION testpub_fortable ADD TABLE testpub_tbl5 (a, d)"} @@ -5106,17 +5086,17 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","has_ast":true,"id":"ffd1e467770c72dcac5a2de9","line":834,"normalized_sql":"SELECT pg_stat_get_backend_io ( NULL )","occurrences":[{"line":834,"offset":35245,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/stats.sql"}],"offset":35245,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/stats.sql","splitter":"scanner","sql":"\n\n-- Check invalid input for pg_stat_get_backend_io()\nSELECT pg_stat_get_backend_io(NULL)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","has_ast":true,"id":"ffda77ff789cc22807cadd80","line":228,"normalized_sql":"CREATE OR REPLACE FUNCTION myinteq ( myint , myint ) RETURNS bool AS $$\nbegin\n if $1 is null and $2 is null then\n return false;\n else\n return $1::int = $2::int;\n end if;\nend;\n$$ LANGUAGE plpgsql IMMUTABLE","occurrences":[{"line":228,"offset":6784,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/expressions.sql"}],"offset":6784,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_FUNCTION_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/expressions.sql","splitter":"scanner","sql":"\n\n-- Now make the equal function return false when given two NULLs\ncreate or replace function myinteq(myint, myint) returns bool as $$\nbegin\n if $1 is null and $2 is null then\n return false;\n else\n return $1::int = $2::int;\n end if;\nend;\n$$ language plpgsql immutable"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_result":"PARTIAL","expected_stmt_type":"INSERT","has_ast":false,"id":"fff040341e4a1456c3de7ef8","line":657,"normalized_sql":"INSERT INTO onek_with_null ( unique1 , unique2 ) VALUES ( NULL , - 1 ) , ( NULL , 2_147_483_647 ) , ( NULL , NULL ) , ( 100 , NULL ) , ( 500 , NULL )","occurrences":[{"line":657,"offset":22585,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_index.sql"}],"offset":22585,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"PARTIAL","parser_stmt_type":"INSERT","remaining":"), (NULL, NULL),\n (100, NULL), (500, NULL)","result":"PARTIAL","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_index.sql","splitter":"scanner","sql":"\nINSERT INTO onek_with_null(unique1, unique2)\nVALUES (NULL, -1), (NULL, 2_147_483_647), (NULL, NULL),\n (100, NULL), (500, NULL)"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","first_postgresql_major":16,"has_ast":true,"id":"pg-json-object-constructor","line":1,"normalized_sql":"SELECT JSON_OBJECT ( 'a' VALUE 1 )","note":"Exercises SQL/JSON constructor syntax through a SELECT.","offset":0,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/data/rene/proxysql6/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"SELECT json_object('a' VALUE 1)","structural_feature_ids":[]} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_MERGE_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"MERGE","first_postgresql_major":15,"has_ast":true,"id":"pg-merge-statement","line":2,"normalized_sql":"MERGE INTO TARGET t USING SOURCE s ON t . id = s . id WHEN MATCHED THEN UPDATE SET VALUE = s . VALUE WHEN NOT MATCHED THEN INSERT ( id , VALUE ) VALUES ( s . id , s . VALUE )","note":"Known PostgreSQL statement with no ParserSQL StmtType equivalent.","offset":33,"oracle_node":"PG_QUERY__NODE__NODE_MERGE_STMT","parser_status":"OK","parser_stmt_type":"MERGE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/data/rene/proxysql6/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"MERGE INTO target t USING source s ON t.id = s.id\nWHEN MATCHED THEN UPDATE SET value = s.value\nWHEN NOT MATCHED THEN INSERT (id, value) VALUES (s.id, s.value)","structural_feature_ids":[]} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ALTER","first_postgresql_major":18,"has_ast":true,"id":"pg18-alter-constraint-inherit","line":38,"normalized_sql":"ALTER TABLE pg18_not_enforced ALTER CONSTRAINT pg18_not_enforced_check INHERIT","note":"Exercises ALTER CONSTRAINT ... INHERIT.","offset":1113,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/data/rene/proxysql6/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"ALTER TABLE pg18_not_enforced ALTER CONSTRAINT pg18_not_enforced_check INHERIT","structural_feature_ids":["db0aec71e3007c85e06dd235"]} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_ALTER_DEFAULT_PRIVILEGES_STMT","expected_result":"ERROR","expected_stmt_type":"ALTER","first_postgresql_major":18,"has_ast":true,"id":"pg18-default-privileges-large-objects","line":39,"normalized_sql":"ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON LARGE OBJECTS TO public","note":"Exercises ALTER DEFAULT PRIVILEGES ON LARGE OBJECTS and the OBJECTS keyword.","offset":1193,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_DEFAULT_PRIVILEGES_STMT","parser_status":"ERROR","parser_stmt_type":"ALTER","remaining":"DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON LARGE OBJECTS TO public","result":"ERROR","source_file":"/data/rene/proxysql6/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON LARGE OBJECTS TO public","structural_feature_ids":["5e4328cba03c27d09f1e22ef","3f91bb45e5a2e4ddaede7637","7f6e0f0f0e6e545ed8ea04fa","e20313c1347cb56a8c0cfe67"]} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","first_postgresql_major":18,"has_ast":true,"id":"pg18-generated-virtual-column","line":5,"normalized_sql":"CREATE TABLE pg18_generated_virtual ( id INT PRIMARY KEY , VALUE INT GENERATED ALWAYS AS ( id + 1 ) VIRTUAL )","note":"Exercises PostgreSQL 18 generated virtual column syntax and the new VIRTUAL keyword.","offset":193,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/data/rene/proxysql6/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"CREATE TABLE pg18_generated_virtual (\n id int PRIMARY KEY,\n value int GENERATED ALWAYS AS (id + 1) VIRTUAL\n)","structural_feature_ids":["b466094b002b05c919a15d79","b09308923b41199e3a197992","0648d7d39a6fe4b392a7217f","55186d44ad6079d980e5bae7","3698ad9c3fa74365b6a1cb62","dedf6c20b02f9ef477c748ba"]} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","first_postgresql_major":18,"has_ast":true,"id":"pg18-in-expression-list-location","line":37,"normalized_sql":"SELECT 1 IN ( 1 , 2 ) , 3 NOT IN ( SELECT 4 )","note":"Exercises IN/NOT IN expression productions whose PG18 source diff adds list location tracking.","offset":1072,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/data/rene/proxysql6/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"SELECT 1 IN (1, 2), 3 NOT IN (SELECT 4)","structural_feature_ids":["3ec56fa8decf947ffff9ede5","2d29c7732f6beca9c6c6c5d5","64289baa78763e18bc529af0","cc4203ef010ad54c0377ee00"]} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","first_postgresql_major":18,"has_ast":true,"id":"pg18-not-enforced-constraint","line":9,"normalized_sql":"CREATE TABLE pg18_not_enforced ( id INT , CONSTRAINT pg18_not_enforced_check CHECK ( id > 0 ) NOT ENFORCED )","note":"Exercises PostgreSQL 18 NOT ENFORCED constraint attributes and ENFORCED keyword handling.","offset":305,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/data/rene/proxysql6/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"CREATE TABLE pg18_not_enforced (\n id int,\n CONSTRAINT pg18_not_enforced_check CHECK (id > 0) NOT ENFORCED\n)","structural_feature_ids":["b499271507628d5fc9180006","8f28ab5b7f253e5486eb6996","0999b592516fab5490e07e8b","eb7d604137142f87b5eb592a","7f71b003d82e6afc30d4bc84","866bc626afa15d0f801f0e45","c32ffdf92b576f9a143f459d"]} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","first_postgresql_major":18,"has_ast":true,"id":"pg18-not-null-no-inherit","line":13,"normalized_sql":"CREATE TABLE pg18_not_null_no_inherit ( id INT , NOT NULL id NO INHERIT )","note":"Exercises PostgreSQL 18 table-level NOT NULL constraint syntax with NO INHERIT.","offset":416,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/data/rene/proxysql6/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"CREATE TABLE pg18_not_null_no_inherit (\n id int,\n NOT NULL id NO INHERIT\n)","structural_feature_ids":["0712f1ff020d542c7a16c41e","cff4eceea125b72afbf135dc"]} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_CREATE_OP_CLASS_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","first_postgresql_major":18,"has_ast":true,"id":"pg18-opclass-purpose","line":40,"normalized_sql":"CREATE OPERATOR CLASS pg18_int4_ops DEFAULT FOR TYPE int4 USING btree AS OPERATOR 1 < ( int4 , int4 ) FOR SEARCH , FUNCTION 1 btint4cmp ( int4 , int4 )","note":"Exercises opclass item purpose annotations.","offset":1273,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_OP_CLASS_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/data/rene/proxysql6/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"CREATE OPERATOR CLASS pg18_int4_ops\nDEFAULT FOR TYPE int4 USING btree AS\n OPERATOR 1 < (int4, int4) FOR SEARCH,\n FUNCTION 1 btint4cmp(int4, int4)","structural_feature_ids":["8d4e03bc74c8f52a6be41a0e","a5c04aacedc53c836a221622"]} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"INSERT","first_postgresql_major":18,"has_ast":true,"id":"pg18-returning-with-old-new","line":34,"normalized_sql":"INSERT INTO foo VALUES ( 4 , 'conflict' ) ON CONFLICT ( f1 ) DO UPDATE SET f2 = excluded . f2 RETURNING WITH ( OLD AS old_row , NEW AS new_row ) old_row . * , new_row . *","note":"Exercises PostgreSQL 18 RETURNING WITH OLD/NEW alias syntax.","offset":911,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/data/rene/proxysql6/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"INSERT INTO foo VALUES (4, 'conflict')\n ON CONFLICT (f1) DO UPDATE SET f2 = excluded.f2\n RETURNING WITH (OLD AS old_row, NEW AS new_row) old_row.*, new_row.*","structural_feature_ids":["02b4ffdba64aae3d517a2261","0a011280798d8db0c0aa4811","d9da398439833074986db5f6","82923f27c91d78b6fba786c1","f892419cc7d2aef5ee9d7185","33639818ce9f0d1b273f2930","a9d3eedf2c9f68210872e534"]} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","first_postgresql_major":18,"has_ast":true,"id":"pg18-temporal-period-foreign-key","line":27,"normalized_sql":"CREATE TABLE pg18_temporal_child ( id INT , valid_at daterange , parent_id INT , FOREIGN KEY ( parent_id , PERIOD valid_at ) REFERENCES pg18_temporal_parent ( id , PERIOD valid_at ) )","note":"Exercises PostgreSQL 18 temporal FOREIGN KEY PERIOD syntax.","offset":723,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/data/rene/proxysql6/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"CREATE TABLE pg18_temporal_child (\n id int,\n valid_at daterange,\n parent_id int,\n FOREIGN KEY (parent_id, PERIOD valid_at)\n REFERENCES pg18_temporal_parent (id, PERIOD valid_at)\n)","structural_feature_ids":["6682e8cd239c980698e5ab9f","9c7843cafcc7f54bb94155fb","27543b82ca2de3b2708b3195","d7e6796087489ab7badc6981","3a3f31a247ca4b3bd5dc0a3d","29fb0b93477794c486080982"]} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","first_postgresql_major":18,"has_ast":true,"id":"pg18-temporal-primary-without-overlaps","line":17,"normalized_sql":"CREATE TABLE pg18_temporal_parent ( id INT , valid_at daterange , PRIMARY KEY ( id , valid_at WITHOUT OVERLAPS ) )","note":"Exercises PostgreSQL 18 PRIMARY KEY WITHOUT OVERLAPS syntax.","offset":494,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/data/rene/proxysql6/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"CREATE TABLE pg18_temporal_parent (\n id int,\n valid_at daterange,\n PRIMARY KEY (id, valid_at WITHOUT OVERLAPS)\n)","structural_feature_ids":["cc5655928112efa3ad1b3188","4a4b0264e55ef3dd08ae1185"]} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","first_postgresql_major":18,"has_ast":true,"id":"pg18-temporal-unique-without-overlaps","line":22,"normalized_sql":"CREATE TABLE pg18_temporal_unique ( id INT , valid_at daterange , UNIQUE ( id , valid_at WITHOUT OVERLAPS ) )","note":"Exercises PostgreSQL 18 UNIQUE WITHOUT OVERLAPS syntax.","offset":611,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/data/rene/proxysql6/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"CREATE TABLE pg18_temporal_unique (\n id int,\n valid_at daterange,\n UNIQUE (id, valid_at WITHOUT OVERLAPS)\n)","structural_feature_ids":["f15017359b8bb14751bee3c6","4a4b0264e55ef3dd08ae1185"]} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_VACUUM_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"VACUUM","first_postgresql_major":18,"has_ast":true,"id":"pg18-vacuum-relation-columns","line":44,"normalized_sql":"VACUUM pg18_generated_virtual ( id )","note":"Exercises VACUUM relation column-list syntax.","offset":1422,"oracle_node":"PG_QUERY__NODE__NODE_VACUUM_STMT","parser_status":"OK","parser_stmt_type":"VACUUM","remaining":"","result":"DEEP_SUPPORTED","source_file":"/data/rene/proxysql6/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"VACUUM pg18_generated_virtual (id)","structural_feature_ids":["3849310c06eae89b49acf7cf"]} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","first_postgresql_major":16,"has_ast":true,"id":"pg-json-object-constructor","line":1,"normalized_sql":"SELECT JSON_OBJECT ( 'a' VALUE 1 )","note":"Exercises SQL/JSON constructor syntax through a SELECT.","offset":0,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/duckdb-query-implementation/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"SELECT json_object('a' VALUE 1)","structural_feature_ids":[]} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_MERGE_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"MERGE","first_postgresql_major":15,"has_ast":true,"id":"pg-merge-statement","line":2,"normalized_sql":"MERGE INTO TARGET t USING SOURCE s ON t . id = s . id WHEN MATCHED THEN UPDATE SET VALUE = s . VALUE WHEN NOT MATCHED THEN INSERT ( id , VALUE ) VALUES ( s . id , s . VALUE )","note":"Known PostgreSQL statement with no ParserSQL StmtType equivalent.","offset":33,"oracle_node":"PG_QUERY__NODE__NODE_MERGE_STMT","parser_status":"OK","parser_stmt_type":"MERGE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/duckdb-query-implementation/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"MERGE INTO target t USING source s ON t.id = s.id\nWHEN MATCHED THEN UPDATE SET value = s.value\nWHEN NOT MATCHED THEN INSERT (id, value) VALUES (s.id, s.value)","structural_feature_ids":[]} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"ALTER","first_postgresql_major":18,"has_ast":true,"id":"pg18-alter-constraint-inherit","line":38,"normalized_sql":"ALTER TABLE pg18_not_enforced ALTER CONSTRAINT pg18_not_enforced_check INHERIT","note":"Exercises ALTER CONSTRAINT ... INHERIT.","offset":1113,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/duckdb-query-implementation/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"ALTER TABLE pg18_not_enforced ALTER CONSTRAINT pg18_not_enforced_check INHERIT","structural_feature_ids":["db0aec71e3007c85e06dd235"]} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_ALTER_DEFAULT_PRIVILEGES_STMT","expected_result":"ERROR","expected_stmt_type":"ALTER","first_postgresql_major":18,"has_ast":true,"id":"pg18-default-privileges-large-objects","line":39,"normalized_sql":"ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON LARGE OBJECTS TO public","note":"Exercises ALTER DEFAULT PRIVILEGES ON LARGE OBJECTS and the OBJECTS keyword.","offset":1193,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_DEFAULT_PRIVILEGES_STMT","parser_status":"ERROR","parser_stmt_type":"ALTER","remaining":"DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON LARGE OBJECTS TO public","result":"ERROR","source_file":"/tmp/duckdb-query-implementation/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON LARGE OBJECTS TO public","structural_feature_ids":["5e4328cba03c27d09f1e22ef","3f91bb45e5a2e4ddaede7637","7f6e0f0f0e6e545ed8ea04fa","e20313c1347cb56a8c0cfe67"]} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","first_postgresql_major":18,"has_ast":true,"id":"pg18-generated-virtual-column","line":5,"normalized_sql":"CREATE TABLE pg18_generated_virtual ( id INT PRIMARY KEY , VALUE INT GENERATED ALWAYS AS ( id + 1 ) VIRTUAL )","note":"Exercises PostgreSQL 18 generated virtual column syntax and the new VIRTUAL keyword.","offset":193,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/duckdb-query-implementation/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"CREATE TABLE pg18_generated_virtual (\n id int PRIMARY KEY,\n value int GENERATED ALWAYS AS (id + 1) VIRTUAL\n)","structural_feature_ids":["b466094b002b05c919a15d79","b09308923b41199e3a197992","0648d7d39a6fe4b392a7217f","55186d44ad6079d980e5bae7","3698ad9c3fa74365b6a1cb62","dedf6c20b02f9ef477c748ba"]} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"SELECT","first_postgresql_major":18,"has_ast":true,"id":"pg18-in-expression-list-location","line":37,"normalized_sql":"SELECT 1 IN ( 1 , 2 ) , 3 NOT IN ( SELECT 4 )","note":"Exercises IN/NOT IN expression productions whose PG18 source diff adds list location tracking.","offset":1072,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/duckdb-query-implementation/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"SELECT 1 IN (1, 2), 3 NOT IN (SELECT 4)","structural_feature_ids":["3ec56fa8decf947ffff9ede5","2d29c7732f6beca9c6c6c5d5","64289baa78763e18bc529af0","cc4203ef010ad54c0377ee00"]} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","first_postgresql_major":18,"has_ast":true,"id":"pg18-not-enforced-constraint","line":9,"normalized_sql":"CREATE TABLE pg18_not_enforced ( id INT , CONSTRAINT pg18_not_enforced_check CHECK ( id > 0 ) NOT ENFORCED )","note":"Exercises PostgreSQL 18 NOT ENFORCED constraint attributes and ENFORCED keyword handling.","offset":305,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/duckdb-query-implementation/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"CREATE TABLE pg18_not_enforced (\n id int,\n CONSTRAINT pg18_not_enforced_check CHECK (id > 0) NOT ENFORCED\n)","structural_feature_ids":["b499271507628d5fc9180006","8f28ab5b7f253e5486eb6996","0999b592516fab5490e07e8b","eb7d604137142f87b5eb592a","7f71b003d82e6afc30d4bc84","866bc626afa15d0f801f0e45","c32ffdf92b576f9a143f459d"]} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","first_postgresql_major":18,"has_ast":true,"id":"pg18-not-null-no-inherit","line":13,"normalized_sql":"CREATE TABLE pg18_not_null_no_inherit ( id INT , NOT NULL id NO INHERIT )","note":"Exercises PostgreSQL 18 table-level NOT NULL constraint syntax with NO INHERIT.","offset":416,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/duckdb-query-implementation/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"CREATE TABLE pg18_not_null_no_inherit (\n id int,\n NOT NULL id NO INHERIT\n)","structural_feature_ids":["0712f1ff020d542c7a16c41e","cff4eceea125b72afbf135dc"]} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_CREATE_OP_CLASS_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","first_postgresql_major":18,"has_ast":true,"id":"pg18-opclass-purpose","line":40,"normalized_sql":"CREATE OPERATOR CLASS pg18_int4_ops DEFAULT FOR TYPE int4 USING btree AS OPERATOR 1 < ( int4 , int4 ) FOR SEARCH , FUNCTION 1 btint4cmp ( int4 , int4 )","note":"Exercises opclass item purpose annotations.","offset":1273,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_OP_CLASS_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/duckdb-query-implementation/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"CREATE OPERATOR CLASS pg18_int4_ops\nDEFAULT FOR TYPE int4 USING btree AS\n OPERATOR 1 < (int4, int4) FOR SEARCH,\n FUNCTION 1 btint4cmp(int4, int4)","structural_feature_ids":["8d4e03bc74c8f52a6be41a0e","a5c04aacedc53c836a221622"]} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"INSERT","first_postgresql_major":18,"has_ast":true,"id":"pg18-returning-with-old-new","line":34,"normalized_sql":"INSERT INTO foo VALUES ( 4 , 'conflict' ) ON CONFLICT ( f1 ) DO UPDATE SET f2 = excluded . f2 RETURNING WITH ( OLD AS old_row , NEW AS new_row ) old_row . * , new_row . *","note":"Exercises PostgreSQL 18 RETURNING WITH OLD/NEW alias syntax.","offset":911,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/duckdb-query-implementation/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"INSERT INTO foo VALUES (4, 'conflict')\n ON CONFLICT (f1) DO UPDATE SET f2 = excluded.f2\n RETURNING WITH (OLD AS old_row, NEW AS new_row) old_row.*, new_row.*","structural_feature_ids":["02b4ffdba64aae3d517a2261","0a011280798d8db0c0aa4811","d9da398439833074986db5f6","82923f27c91d78b6fba786c1","f892419cc7d2aef5ee9d7185","33639818ce9f0d1b273f2930","a9d3eedf2c9f68210872e534"]} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","first_postgresql_major":18,"has_ast":true,"id":"pg18-temporal-period-foreign-key","line":27,"normalized_sql":"CREATE TABLE pg18_temporal_child ( id INT , valid_at daterange , parent_id INT , FOREIGN KEY ( parent_id , PERIOD valid_at ) REFERENCES pg18_temporal_parent ( id , PERIOD valid_at ) )","note":"Exercises PostgreSQL 18 temporal FOREIGN KEY PERIOD syntax.","offset":723,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/duckdb-query-implementation/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"CREATE TABLE pg18_temporal_child (\n id int,\n valid_at daterange,\n parent_id int,\n FOREIGN KEY (parent_id, PERIOD valid_at)\n REFERENCES pg18_temporal_parent (id, PERIOD valid_at)\n)","structural_feature_ids":["6682e8cd239c980698e5ab9f","9c7843cafcc7f54bb94155fb","27543b82ca2de3b2708b3195","d7e6796087489ab7badc6981","3a3f31a247ca4b3bd5dc0a3d","29fb0b93477794c486080982"]} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","first_postgresql_major":18,"has_ast":true,"id":"pg18-temporal-primary-without-overlaps","line":17,"normalized_sql":"CREATE TABLE pg18_temporal_parent ( id INT , valid_at daterange , PRIMARY KEY ( id , valid_at WITHOUT OVERLAPS ) )","note":"Exercises PostgreSQL 18 PRIMARY KEY WITHOUT OVERLAPS syntax.","offset":494,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/duckdb-query-implementation/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"CREATE TABLE pg18_temporal_parent (\n id int,\n valid_at daterange,\n PRIMARY KEY (id, valid_at WITHOUT OVERLAPS)\n)","structural_feature_ids":["cc5655928112efa3ad1b3188","4a4b0264e55ef3dd08ae1185"]} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"CREATE","first_postgresql_major":18,"has_ast":true,"id":"pg18-temporal-unique-without-overlaps","line":22,"normalized_sql":"CREATE TABLE pg18_temporal_unique ( id INT , valid_at daterange , UNIQUE ( id , valid_at WITHOUT OVERLAPS ) )","note":"Exercises PostgreSQL 18 UNIQUE WITHOUT OVERLAPS syntax.","offset":611,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/duckdb-query-implementation/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"CREATE TABLE pg18_temporal_unique (\n id int,\n valid_at daterange,\n UNIQUE (id, valid_at WITHOUT OVERLAPS)\n)","structural_feature_ids":["f15017359b8bb14751bee3c6","4a4b0264e55ef3dd08ae1185"]} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_oracle_node":"PG_QUERY__NODE__NODE_VACUUM_STMT","expected_result":"DEEP_SUPPORTED","expected_stmt_type":"VACUUM","first_postgresql_major":18,"has_ast":true,"id":"pg18-vacuum-relation-columns","line":44,"normalized_sql":"VACUUM pg18_generated_virtual ( id )","note":"Exercises VACUUM relation column-list syntax.","offset":1422,"oracle_node":"PG_QUERY__NODE__NODE_VACUUM_STMT","parser_status":"OK","parser_stmt_type":"VACUUM","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/duckdb-query-implementation/ParserSQL/tests/pg_compat/witnesses.sql","splitter":"parser","sql":"VACUUM pg18_generated_virtual (id)","structural_feature_ids":["3849310c06eae89b49acf7cf"]} diff --git a/tests/pg_compat/expected_results.jsonl b/tests/pg_compat/expected_results.jsonl index 82e9b32..650856c 100644 --- a/tests/pg_compat/expected_results.jsonl +++ b/tests/pg_compat/expected_results.jsonl @@ -5405,7 +5405,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"1adef8e7c50b5ab07edb3edf","line":2267,"normalized_sql":"SELECT excpt_test4 ( )","occurrences":[{"line":2267,"offset":65805,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/plpgsql.sql"}],"offset":65805,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/plpgsql.sql","splitter":"scanner","sql":"\nselect excpt_test4()"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"1ae033cf9bd00f7e619ce518","line":30,"normalized_sql":"SELECT pg_relation_size ( ( SELECT reltoastrelid FROM pg_class WHERE oid = 'pg_proc' :: regclass ) ) > 0","occurrences":[{"line":30,"offset":1074,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/test_decoding/sql/rewrite.sql"}],"offset":1074,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/test_decoding/sql/rewrite.sql","splitter":"parser","sql":"SELECT pg_relation_size((SELECT reltoastrelid FROM pg_class WHERE oid = 'pg_proc'::regclass)) > 0"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"1ae0ff19ac0d302800e2ee67","line":248,"normalized_sql":"SELECT description , inbytes , ( test_conv ( inbytes , 'utf8' , 'latin5' ) ) . * FROM utf8_inputs","occurrences":[{"line":248,"offset":7955,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/conversion.sql"}],"offset":7955,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/conversion.sql","splitter":"scanner","sql":"\nselect description, inbytes, (test_conv(inbytes, 'utf8', 'latin5')).* from utf8_inputs"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"1ae30f65b161516689dc9b07","line":16,"normalized_sql":"SELECT * , character_length ( \u7528\u8a9e ) FROM \u8a08\u7b97\u6a5f\u7528\u8a9e","occurrences":[{"line":16,"offset":1020,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":1020,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"\u7528\u8a9e) from \u8a08\u7b97\u6a5f\u7528\u8a9e","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select *,character_length(\u7528\u8a9e) from \u8a08\u7b97\u6a5f\u7528\u8a9e"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"1ae30f65b161516689dc9b07","line":16,"normalized_sql":"SELECT * , character_length ( \u7528\u8a9e ) FROM \u8a08\u7b97\u6a5f\u7528\u8a9e","occurrences":[{"line":16,"offset":1020,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":1020,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select *,character_length(\u7528\u8a9e) from \u8a08\u7b97\u6a5f\u7528\u8a9e"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"1ae773f5fac73a977f983ad8","line":78,"normalized_sql":"CREATE INDEX spgist_domain_idx ON spgist_domain_tbl USING spgist ( f1 )","occurrences":[{"line":78,"offset":3021,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/spgist.sql"}],"offset":3021,"oracle_node":"PG_QUERY__NODE__NODE_INDEX_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/spgist.sql","splitter":"parser","sql":"create index spgist_domain_idx on spgist_domain_tbl using spgist(f1)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"1ae8e8cd23052d6fa8d4f4e7","line":504,"normalized_sql":"CREATE TEMP TABLE p_t1_1 PARTITION OF p_t1 FOR VALUES IN ( 1 )","occurrences":[{"line":504,"offset":16790,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/aggregates.sql"}],"offset":16790,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/aggregates.sql","splitter":"scanner","sql":"\ncreate temp table p_t1_1 partition of p_t1 for values in(1)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"1ae97db2fbfc1843c8f70ea6","line":1148,"normalized_sql":"CREATE TABLE pagg_tab6 ( c TEXT COLLATE case_insensitive , b TEXT COLLATE case_insensitive ) PARTITION BY LIST ( b COLLATE case_insensitive )","occurrences":[{"line":1148,"offset":48833,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.icu.utf8.sql"}],"offset":48833,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.icu.utf8.sql","splitter":"scanner","sql":"\n\nCREATE TABLE pagg_tab6 (c text collate case_insensitive, b text collate case_insensitive) PARTITION BY LIST (b collate case_insensitive)"} @@ -5884,7 +5884,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"INSERT","has_ast":true,"id":"1d34210c24ca5d8d2712dff5","line":387,"normalized_sql":"INSERT INTO table_dropped_index_no_pk VALUES ( 1 , 1 , 1 ) , ( 2 , 2 , 2 ) , ( 3 , 3 , 3 )","occurrences":[{"line":387,"offset":15239,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/test_decoding/sql/ddl.sql"}],"offset":15239,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/test_decoding/sql/ddl.sql","splitter":"scanner","sql":"\nINSERT INTO table_dropped_index_no_pk VALUES (1,1,1), (2,2,2), (3,3,3)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"1d36343e46b00e458542bbc0","line":372,"normalized_sql":"SELECT p1 . f1 , p2 . f1 FROM POLYGON_TBL p1 , POLYGON_TBL p2 WHERE p1 . f1 &> p2 . f1","occurrences":[{"line":372,"offset":9795,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/geometry.sql"}],"offset":9795,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/geometry.sql","splitter":"parser","sql":"SELECT p1.f1, p2.f1 FROM POLYGON_TBL p1, POLYGON_TBL p2 WHERE p1.f1 &> p2.f1"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"1d367d4465f8be57af71dfa6","line":3059,"normalized_sql":"CREATE FOREIGN TABLE tru_ftable_parent ( id INT ) SERVER loopback OPTIONS ( table_name 'tru_rtable_parent' )","occurrences":[{"line":3059,"offset":126955,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql"}],"offset":126955,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_FOREIGN_TABLE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql","splitter":"scanner","sql":"\nCREATE FOREIGN TABLE tru_ftable_parent (id int)\n SERVER loopback OPTIONS (table_name 'tru_rtable_parent')"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"1d38c100426f015fbf060d09","line":15,"normalized_sql":"SELECT * FROM \u8a08\u7b97\u6a5f\u7528\u8a9e WHERE \u7528\u8a9e ~* '\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf[\u30c7\u30b0]'","occurrences":[{"line":15,"offset":944,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":944,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"\u8a08\u7b97\u6a5f\u7528\u8a9e where \u7528\u8a9e ~* '\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf[\u30c7\u30b0]'","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from \u8a08\u7b97\u6a5f\u7528\u8a9e where \u7528\u8a9e ~* '\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf[\u30c7\u30b0]'"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"1d38c100426f015fbf060d09","line":15,"normalized_sql":"SELECT * FROM \u8a08\u7b97\u6a5f\u7528\u8a9e WHERE \u7528\u8a9e ~* '\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf[\u30c7\u30b0]'","occurrences":[{"line":15,"offset":944,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":944,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from \u8a08\u7b97\u6a5f\u7528\u8a9e where \u7528\u8a9e ~* '\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf[\u30c7\u30b0]'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"1d399ebbc1f1f331e66bf21f","line":103,"normalized_sql":"CREATE TABLE INSERT_TBL ( x INT DEFAULT nextval ( 'insert_seq' ) , y TEXT DEFAULT '-NULL-' , z INT DEFAULT - 1 * currval ( 'insert_seq' ) , CONSTRAINT INSERT_TBL_CON CHECK ( x >= 3 AND y <> 'check failed' AND x < 8 ) , CHECK ( x + z = 0 ) ENFORCED , CONSTRAINT NE_INSERT_TBL_CON CHECK ( x + z = 1 ) NOT ENFORCED )","occurrences":[{"line":103,"offset":2714,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/constraints.sql"}],"offset":2714,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/constraints.sql","splitter":"scanner","sql":"\n\nCREATE TABLE INSERT_TBL (x INT DEFAULT nextval('insert_seq'),\n\ty TEXT DEFAULT '-NULL-',\n\tz INT DEFAULT -1 * currval('insert_seq'),\n\tCONSTRAINT INSERT_TBL_CON CHECK (x >= 3 AND y <> 'check failed' AND x < 8),\n\tCHECK (x + z = 0) ENFORCED, /* no change it is a default */\n\tCONSTRAINT NE_INSERT_TBL_CON CHECK (x + z = 1) NOT ENFORCED)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"1d3a7538f1758ca7c4c714fc","line":398,"normalized_sql":"ALTER COLLATION test1 RENAME TO test11","occurrences":[{"line":398,"offset":13777,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.icu.utf8.sql"},{"line":384,"offset":13059,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.linux.utf8.sql"}],"offset":13777,"oracle_node":"PG_QUERY__NODE__NODE_RENAME_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.icu.utf8.sql","splitter":"scanner","sql":"\n\nALTER COLLATION test1 RENAME TO test11"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"1d3c953757df3c4f9b413300","line":1449,"normalized_sql":"SELECT * FROM ( SELECT 0 AS z ) AS t1 LEFT JOIN ( SELECT TRUE AS a ) AS t2 ON TRUE , LATERAL ( SELECT TRUE AS b UNION ALL SELECT a AS b ) AS t3 WHERE b","occurrences":[{"line":1449,"offset":38140,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/join.sql"}],"offset":38140,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/join.sql","splitter":"parser","sql":"select * from\n (select 0 as z) as t1\n left join\n (select true as a) as t2\n on true,\n lateral (select true as b\n union all\n select a as b) as t3\nwhere b"} @@ -7014,7 +7014,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"22ac9acb0732fe98c84306e4","line":89,"normalized_sql":"SELECT tcl_eval ( 'quote [format %c 92]' )","occurrences":[{"line":89,"offset":2898,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/tcl/sql/pltcl_queries.sql"}],"offset":2898,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/tcl/sql/pltcl_queries.sql","splitter":"parser","sql":"select tcl_eval('quote [format %c 92]')"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"22acbcba76880e47a1a456f2","line":267,"normalized_sql":"ALTER INDEX idxpart1_expr_idx ATTACH PARTITION idxpart11_expr_idx","occurrences":[{"line":267,"offset":12259,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/indexing.sql"},{"line":276,"offset":12747,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/indexing.sql"}],"offset":12259,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/indexing.sql","splitter":"scanner","sql":"\n-- attach the indexes; parents stay invalid\nalter index idxpart1_expr_idx attach partition idxpart11_expr_idx"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"22af347d0d3c2dcceb3a4a3b","line":72,"normalized_sql":"SELECT ' ' :: JSON","occurrences":[{"line":72,"offset":2791,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/json.sql"}],"offset":2791,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/json.sql","splitter":"parser","sql":"SELECT ' '::json"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"22af652eb3a84169f1363ad7","line":18,"normalized_sql":"SELECT * , POSITION ( '\u30c7' IN \u7528\u8a9e ) FROM \u8a08\u7b97\u6a5f\u7528\u8a9e","occurrences":[{"line":18,"offset":1128,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":1128,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"\u7528\u8a9e) from \u8a08\u7b97\u6a5f\u7528\u8a9e","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select *,position('\u30c7' in \u7528\u8a9e) from \u8a08\u7b97\u6a5f\u7528\u8a9e"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"22af652eb3a84169f1363ad7","line":18,"normalized_sql":"SELECT * , POSITION ( '\u30c7' IN \u7528\u8a9e ) FROM \u8a08\u7b97\u6a5f\u7528\u8a9e","occurrences":[{"line":18,"offset":1128,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":1128,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select *,position('\u30c7' in \u7528\u8a9e) from \u8a08\u7b97\u6a5f\u7528\u8a9e"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"22b7c2d7d491029c69c8b7f8","line":282,"normalized_sql":"CREATE FUNCTION manual_subxact ( ) RETURNS void AS $$\nplpy.execute(\"savepoint save\")\nplpy.execute(\"create table foo(x integer)\")\nplpy.execute(\"rollback to save\")\n$$ LANGUAGE plpython3u","occurrences":[{"line":282,"offset":5915,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpython/sql/plpython_error.sql"}],"offset":5915,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_FUNCTION_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpython/sql/plpython_error.sql","splitter":"scanner","sql":"\n\n/* manually starting subtransactions - a bad idea\n */\nCREATE FUNCTION manual_subxact() RETURNS void AS $$\nplpy.execute(\"savepoint save\")\nplpy.execute(\"create table foo(x integer)\")\nplpy.execute(\"rollback to save\")\n$$ LANGUAGE plpython3u"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"22b9ea9dc1eab361a1072b1c","line":392,"normalized_sql":"SELECT INTERVAL '-2147483649 months'","occurrences":[{"line":392,"offset":15617,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/interval.sql"}],"offset":15617,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/interval.sql","splitter":"scanner","sql":"\nselect interval '-2147483649 months'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"22badaad88213a193ec4b28d","line":40,"normalized_sql":"SELECT pg_input_is_valid ( '34.5' , 'float4' )","occurrences":[{"line":40,"offset":1379,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/float4.sql"}],"offset":1379,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/float4.sql","splitter":"parser","sql":"SELECT pg_input_is_valid('34.5', 'float4')"} @@ -8000,7 +8000,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"278cb3beca990ed45f78f0ac","line":448,"normalized_sql":"ALTER OPERATOR FAMILY alt_opf18 USING btree ADD FUNCTION 6 ( int4 , int2 ) btint4skipsupport ( internal )","occurrences":[{"line":448,"offset":20612,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_generic.sql"}],"offset":20612,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_OP_FAMILY_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_generic.sql","splitter":"scanner","sql":"\n-- Should fail. Not allowed to have cross-type skip support function.\nALTER OPERATOR FAMILY alt_opf18 USING btree\n ADD FUNCTION 6 (int4, int2) btint4skipsupport(internal)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"278d63c6e23c7e8217872936","line":1725,"normalized_sql":"CREATE POLICY priv_test_parent_tbl_pol ON tststats . priv_test_parent_tbl USING ( 2 * a < 0 )","occurrences":[{"line":1725,"offset":78034,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/stats_ext.sql"}],"offset":78034,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_POLICY_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/stats_ext.sql","splitter":"scanner","sql":"\nCREATE POLICY priv_test_parent_tbl_pol ON tststats.priv_test_parent_tbl USING (2 * a < 0)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"278d8eb79ccb613ffe9ceca6","line":25,"normalized_sql":"SELECT count ( * ) FROM timestamptmp WHERE a < '2004-10-26 08:55:08' :: TIMESTAMP","occurrences":[{"line":25,"offset":665,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/sql/timestamp.sql"}],"offset":665,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/sql/timestamp.sql","splitter":"scanner","sql":"\n\nSELECT count(*) FROM timestamptmp WHERE a < '2004-10-26 08:55:08'::timestamp"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"DROP","has_ast":true,"id":"278ddd66feb40996ffba503e","line":1,"normalized_sql":"DROP TABLE \u8a08\u7b97\u6a5f\u7528\u8a9e","occurrences":[{"line":1,"offset":0,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":0,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"ERROR","parser_stmt_type":"DROP","remaining":"\u8a08\u7b97\u6a5f\u7528\u8a9e","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"drop table \u8a08\u7b97\u6a5f\u7528\u8a9e"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"DROP","has_ast":true,"id":"278ddd66feb40996ffba503e","line":1,"normalized_sql":"DROP TABLE \u8a08\u7b97\u6a5f\u7528\u8a9e","occurrences":[{"line":1,"offset":0,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":0,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"OK","parser_stmt_type":"DROP","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"drop table \u8a08\u7b97\u6a5f\u7528\u8a9e"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"278e93d2525de57dcc1f92af","line":90,"normalized_sql":"ALTER FUNCTION isneq ( isbn , isbn ) PARALLEL SAFE","occurrences":[{"line":90,"offset":4334,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/isn/isn--1.0--1.1.sql"}],"offset":4334,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_FUNCTION_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/isn/isn--1.0--1.1.sql","splitter":"scanner","sql":"\nALTER FUNCTION isneq(isbn, isbn) PARALLEL SAFE"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"278fc759173a5c5ae8c6ca46","line":276,"normalized_sql":"SELECT * FROM test_regex ( 'a{2,}b' , 'aaaab' , 'Q' )","occurrences":[{"line":276,"offset":10802,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/test_regex/sql/test_regex.sql"}],"offset":10802,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/test_regex/sql/test_regex.sql","splitter":"parser","sql":"select * from test_regex('a{2,}b', 'aaaab', 'Q')"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"2790268378dc16ad5e95a2ab","line":2896,"normalized_sql":"ALTER TABLE ONLY list_parted3 DROP CONSTRAINT list_parted3_a_not_null","occurrences":[{"line":2896,"offset":108384,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_table.sql"}],"offset":108384,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_table.sql","splitter":"scanner","sql":"\nALTER TABLE ONLY list_parted3 DROP CONSTRAINT list_parted3_a_not_null"} @@ -8147,7 +8147,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"283db86cdce2f95dc3457caf","line":68,"normalized_sql":"ALTER FUNCTION gbt_int8_union ( internal , internal ) PARALLEL SAFE","occurrences":[{"line":68,"offset":4145,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/btree_gist--1.5--1.6.sql"}],"offset":4145,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_FUNCTION_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/btree_gist--1.5--1.6.sql","splitter":"scanner","sql":"\nALTER FUNCTION gbt_int8_union(internal, internal) PARALLEL SAFE"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"283ddb2f25c8e00c3608f343","line":1311,"normalized_sql":"EXPLAIN ( costs OFF ) SELECT * FROM mcrparted ORDER BY a DESC , abs ( b ) DESC , c DESC","occurrences":[{"line":1311,"offset":53915,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql"}],"offset":53915,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"OK","parser_stmt_type":"EXPLAIN","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql","splitter":"scanner","sql":"\n\n-- Append is used with subpaths in reverse order with backwards index scans\nexplain (costs off) select * from mcrparted order by a desc, abs(b) desc, c desc"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"284008c43030891b944a1b78","line":887,"normalized_sql":"CREATE TABLE inh_cc1 ( f2 TEXT , f3 INT ) INHERITS ( inh_pp1 )","occurrences":[{"line":887,"offset":34866,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql"},{"line":896,"offset":35204,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql"}],"offset":34866,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql","splitter":"scanner","sql":"\ncreate table inh_cc1 (f2 text, f3 int) inherits (inh_pp1)"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SET","has_ast":true,"id":"28405a5b75ac01fabec5cf3b","line":659,"normalized_sql":"SET LOCAL TIME ZONE 'Australia/Sydney'","occurrences":[{"line":659,"offset":29415,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/timestamptz.sql"}],"offset":29415,"oracle_node":"PG_QUERY__NODE__NODE_VARIABLE_SET_STMT","parser_status":"OK","parser_stmt_type":"SET","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/timestamptz.sql","splitter":"scanner","sql":"\nSET LOCAL TIME ZONE 'Australia/Sydney'"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SET","has_ast":false,"id":"28405a5b75ac01fabec5cf3b","line":659,"normalized_sql":"SET LOCAL TIME ZONE 'Australia/Sydney'","occurrences":[{"line":659,"offset":29415,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/timestamptz.sql"}],"offset":29415,"oracle_node":"PG_QUERY__NODE__NODE_VARIABLE_SET_STMT","parser_status":"ERROR","parser_stmt_type":"SET","remaining":"ZONE 'Australia/Sydney'","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/timestamptz.sql","splitter":"scanner","sql":"\nSET LOCAL TIME ZONE 'Australia/Sydney'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"28409fe06887df113b3a00b2","line":56,"normalized_sql":"CREATE OPERATOR CLASS int4_ops DEFAULT FOR TYPE int4 USING gin AS OPERATOR 1 < , OPERATOR 2 <= , OPERATOR 3 = , OPERATOR 4 >= , OPERATOR 5 > , FUNCTION 1 btint4cmp ( int4 , int4 ) , FUNCTION 2 gin_extract_value_int4 ( int4 , internal ) , FUNCTION 3 gin_extract_query_int4 ( int4 , internal , int2 , internal , internal ) , FUNCTION 4 gin_btree_consistent ( internal , int2 , anyelement , int4 , internal , internal ) , FUNCTION 5 gin_compare_prefix_int4 ( int4 , int4 , int2 , internal ) , STORAGE int4","occurrences":[{"line":56,"offset":1786,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gin/btree_gin--1.0.sql"}],"offset":1786,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_OP_CLASS_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gin/btree_gin--1.0.sql","splitter":"scanner","sql":"\n\nCREATE OPERATOR CLASS int4_ops\nDEFAULT FOR TYPE int4 USING gin\nAS\n OPERATOR 1 <,\n OPERATOR 2 <=,\n OPERATOR 3 =,\n OPERATOR 4 >=,\n OPERATOR 5 >,\n FUNCTION 1 btint4cmp(int4,int4),\n FUNCTION 2 gin_extract_value_int4(int4, internal),\n FUNCTION 3 gin_extract_query_int4(int4, internal, int2, internal, internal),\n FUNCTION 4 gin_btree_consistent(internal, int2, anyelement, int4, internal, internal),\n FUNCTION 5 gin_compare_prefix_int4(int4,int4,int2, internal),\nSTORAGE int4"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CLOSE","has_ast":true,"id":"28415c3315eff6815a0242da","line":230,"normalized_sql":"CLOSE foo25","occurrences":[{"line":230,"offset":3854,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/portals.sql"},{"line":96,"offset":1356,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/portals_p2.sql"}],"offset":3854,"oracle_node":"PG_QUERY__NODE__NODE_CLOSE_PORTAL_STMT","parser_status":"OK","parser_stmt_type":"CLOSE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/portals.sql","splitter":"parser","sql":"CLOSE foo25"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"28428f2d8b6e6e14d1589f7c","line":367,"normalized_sql":"CREATE INDEX unlogged_hash_index ON unlogged_hash_table USING hash ( id int4_ops )","occurrences":[{"line":367,"offset":12923,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_index.sql"}],"offset":12923,"oracle_node":"PG_QUERY__NODE__NODE_INDEX_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_index.sql","splitter":"scanner","sql":"\nCREATE INDEX unlogged_hash_index ON unlogged_hash_table USING hash (id int4_ops)"} @@ -8160,7 +8160,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"284adc59352e7859c2a2b8b2","line":62,"normalized_sql":"SELECT var_pop ( 1.0 :: float8 ) , var_samp ( 2.0 :: float8 )","occurrences":[{"line":62,"offset":1609,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/aggregates.sql"}],"offset":1609,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/aggregates.sql","splitter":"scanner","sql":"\n\n-- population variance is defined for a single tuple, sample variance\n-- is not\nSELECT var_pop(1.0::float8), var_samp(2.0::float8)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"UPDATE","has_ast":true,"id":"285009db46157f0f6eb0e664","line":457,"normalized_sql":"UPDATE temporal_rng3 SET id = NULL , valid_at = 'empty' WHERE id = '[1,2)' AND valid_at IS NULL","occurrences":[{"line":457,"offset":14841,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql"}],"offset":14841,"oracle_node":"PG_QUERY__NODE__NODE_UPDATE_STMT","parser_status":"OK","parser_stmt_type":"UPDATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql","splitter":"scanner","sql":"\n-- still rejects empty when scalar part is NULL:\nUPDATE temporal_rng3\nSET id = NULL,\n valid_at = 'empty'\nWHERE id = '[1,2)' AND valid_at IS NULL"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"28520705a77b3b40f4c85c2f","line":173,"normalized_sql":"SELECT nummultirange ( ) && nummultirange ( )","occurrences":[{"line":173,"offset":7600,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/multirangetypes.sql"}],"offset":7600,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/multirangetypes.sql","splitter":"scanner","sql":"\nSELECT nummultirange() && nummultirange()"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"INSERT","has_ast":false,"id":"2852eccba6ac4adf3cb81068","line":6,"normalized_sql":"INSERT INTO \u8a08\u7b97\u6a5f\u7528\u8a9e VALUES ( '\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9' , '\u5206B10\u4e2d' )","occurrences":[{"line":6,"offset":370,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":370,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"PARTIAL","parser_stmt_type":"INSERT","remaining":"\u00a8\u0088\u7b97\u6a5f\u7528\u8a9e values('\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9','\u5206B10\u4e2d')","result":"PARTIAL","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"insert into \u8a08\u7b97\u6a5f\u7528\u8a9e values('\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9','\u5206B10\u4e2d')"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"INSERT","has_ast":true,"id":"2852eccba6ac4adf3cb81068","line":6,"normalized_sql":"INSERT INTO \u8a08\u7b97\u6a5f\u7528\u8a9e VALUES ( '\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9' , '\u5206B10\u4e2d' )","occurrences":[{"line":6,"offset":370,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":370,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"insert into \u8a08\u7b97\u6a5f\u7528\u8a9e values('\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9','\u5206B10\u4e2d')"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"DROP","has_ast":true,"id":"28536ef15a040f01ec89ae8d","line":239,"normalized_sql":"DROP TABLE vacparted_i","occurrences":[{"line":239,"offset":9123,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/vacuum.sql"}],"offset":9123,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"OK","parser_stmt_type":"DROP","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/vacuum.sql","splitter":"scanner","sql":"\nDROP TABLE vacparted_i"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"285ae58e7283730a03afeb89","line":368,"normalized_sql":"CREATE TEMP TABLE compos ( f1 INT , f2 TEXT )","occurrences":[{"line":368,"offset":11878,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/rowtypes.sql"}],"offset":11878,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/rowtypes.sql","splitter":"parser","sql":"create temp table compos (f1 int, f2 text)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"285b71ef665ce50e2958748d","line":312,"normalized_sql":"SELECT a FROM ref_b","occurrences":[{"line":312,"offset":9241,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/truncate.sql"}],"offset":9241,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/truncate.sql","splitter":"parser","sql":"SELECT a FROM ref_b"} @@ -20941,7 +20941,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"687955e7ff004ceb5e2865c2","line":209,"normalized_sql":"ALTER TABLE d_star * RENAME COLUMN d TO dd","occurrences":[{"line":209,"offset":5138,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_misc.sql"}],"offset":5138,"oracle_node":"PG_QUERY__NODE__NODE_RENAME_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_misc.sql","splitter":"parser","sql":"ALTER TABLE d_star* RENAME COLUMN d TO dd"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"68798cff8169d795b17914a4","line":616,"normalized_sql":"ALTER TABLE gtest31_1 ALTER COLUMN b SET EXPRESSION AS ( 'hello3' )","occurrences":[{"line":616,"offset":25149,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/generated_stored.sql"},{"line":667,"offset":28146,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/generated_virtual.sql"}],"offset":25149,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/generated_stored.sql","splitter":"scanner","sql":"\nALTER TABLE gtest31_1 ALTER COLUMN b SET EXPRESSION AS ('hello3')"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"687a0bdcba7f0bcad0862d8d","line":329,"normalized_sql":"CREATE TABLE FKTABLE ( ftest1 INT , ftest2 INT , ftest3 INT , ftest4 INT , CONSTRAINT constrname3 FOREIGN KEY ( ftest1 , ftest2 , ftest3 ) REFERENCES PKTABLE ( ptest1 , ptest2 , ptest3 ) )","occurrences":[{"line":329,"offset":10152,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/foreign_key.sql"}],"offset":10152,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/foreign_key.sql","splitter":"scanner","sql":"\nCREATE TABLE FKTABLE ( ftest1 int, ftest2 int, ftest3 int, ftest4 int, CONSTRAINT constrname3\n\t\t\tFOREIGN KEY(ftest1, ftest2, ftest3) REFERENCES PKTABLE (ptest1, ptest2, ptest3))"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"INSERT","has_ast":false,"id":"687a915c1b971b946a48da92","line":5,"normalized_sql":"INSERT INTO \u8a08\u7b97\u6a5f\u7528\u8a9e VALUES ( '\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4' , '\u6a5fA01\u4e0a' )","occurrences":[{"line":5,"offset":282,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":282,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"PARTIAL","parser_stmt_type":"INSERT","remaining":"\u00a8\u0088\u7b97\u6a5f\u7528\u8a9e values('\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4','\u6a5fA01\u4e0a')","result":"PARTIAL","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"insert into \u8a08\u7b97\u6a5f\u7528\u8a9e values('\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4','\u6a5fA01\u4e0a')"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"INSERT","has_ast":true,"id":"687a915c1b971b946a48da92","line":5,"normalized_sql":"INSERT INTO \u8a08\u7b97\u6a5f\u7528\u8a9e VALUES ( '\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4' , '\u6a5fA01\u4e0a' )","occurrences":[{"line":5,"offset":282,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":282,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"insert into \u8a08\u7b97\u6a5f\u7528\u8a9e values('\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4','\u6a5fA01\u4e0a')"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"687b84fc671d54a57dbb9f19","line":746,"normalized_sql":"CREATE VIEW v4 AS SELECT * FROM ft4","occurrences":[{"line":746,"offset":39307,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql"}],"offset":39307,"oracle_node":"PG_QUERY__NODE__NODE_VIEW_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql","splitter":"scanner","sql":"\n\nCREATE VIEW v4 AS SELECT * FROM ft4"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"687d45c1900a534e3a3a5859","line":124,"normalized_sql":"CREATE FUNCTION seg_same ( seg , seg ) RETURNS bool AS 'MODULE_PATHNAME' LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE","occurrences":[{"line":124,"offset":2695,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/seg/seg--1.1.sql"}],"offset":2695,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_FUNCTION_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/seg/seg--1.1.sql","splitter":"scanner","sql":"\n\nCREATE FUNCTION seg_same(seg, seg)\nRETURNS bool\nAS 'MODULE_PATHNAME'\nLANGUAGE C STRICT IMMUTABLE PARALLEL SAFE"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"687f87101ccb9321960fea5c","line":248,"normalized_sql":"SELECT set_limit ( 0.5 )","occurrences":[{"line":248,"offset":10668,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_trgm/sql/pg_trgm.sql"}],"offset":10668,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/pg_trgm/sql/pg_trgm.sql","splitter":"scanner","sql":"\nSELECT set_limit(0.5)"} @@ -28679,7 +28679,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"8f4058b08092be341d506aa1","line":147,"normalized_sql":"SELECT length ( f1 ) FROM cmmove2","occurrences":[{"line":147,"offset":5352,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/compression.sql"}],"offset":5352,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/compression.sql","splitter":"scanner","sql":"\nSELECT length(f1) FROM cmmove2"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"INSERT","has_ast":true,"id":"8f42c56e4abd4f5b88af2949","line":15,"normalized_sql":"INSERT INTO FLOAT4_TBL ( f1 ) VALUES ( '-10e70' )","occurrences":[{"line":15,"offset":404,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/float4.sql"}],"offset":404,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/float4.sql","splitter":"parser","sql":"INSERT INTO FLOAT4_TBL(f1) VALUES ('-10e70')"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"INSERT","has_ast":true,"id":"8f4341f9e76374c2f6c12b7e","line":8,"normalized_sql":"INSERT INTO TIMETZ_TBL VALUES ( '01:00 PDT' )","occurrences":[{"line":8,"offset":116,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/timetz.sql"}],"offset":116,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/timetz.sql","splitter":"parser","sql":"INSERT INTO TIMETZ_TBL VALUES ('01:00 PDT')"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"8f446acafba8601f238956f3","line":13,"normalized_sql":"SELECT * FROM \u8a08\u7b97\u6a5f\u7528\u8a9e WHERE \u5206\u985e\u30b3\u30fc\u30c9 LIKE '_Z%'","occurrences":[{"line":13,"offset":805,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":805,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"\u8a08\u7b97\u6a5f\u7528\u8a9e where \u5206\u985e\u30b3\u30fc\u30c9 like '_Z%'","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from \u8a08\u7b97\u6a5f\u7528\u8a9e where \u5206\u985e\u30b3\u30fc\u30c9 like '_Z%'"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"8f446acafba8601f238956f3","line":13,"normalized_sql":"SELECT * FROM \u8a08\u7b97\u6a5f\u7528\u8a9e WHERE \u5206\u985e\u30b3\u30fc\u30c9 LIKE '_Z%'","occurrences":[{"line":13,"offset":805,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":805,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from \u8a08\u7b97\u6a5f\u7528\u8a9e where \u5206\u985e\u30b3\u30fc\u30c9 like '_Z%'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"8f45a571a8cecf3f2cef3308","line":538,"normalized_sql":"ALTER TABLE t2 ALTER COLUMN z DROP NOT NULL","occurrences":[{"line":538,"offset":18251,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/aggregates.sql"}],"offset":18251,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/aggregates.sql","splitter":"scanner","sql":"\nalter table t2 alter column z drop not null"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"8f48b84c5d9409b339716f31","line":218,"normalized_sql":"CREATE TEMP TABLE temp_parted_oncommit_test ( a INT ) PARTITION BY list ( a ) ON COMMIT DELETE ROWS","occurrences":[{"line":218,"offset":5060,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/temp.sql"}],"offset":5060,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/temp.sql","splitter":"scanner","sql":"\ncreate temp table temp_parted_oncommit_test (a int)\n partition by list (a) on commit delete rows"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"8f48c832fbd40a06d0b4ee14","line":794,"normalized_sql":"SELECT * FROM jsonb_to_record ( '{\"ia2\": [[1, 2], [3, 4]]}' ) AS x ( ia2 int4 [ ] [ ] )","occurrences":[{"line":794,"offset":37108,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/jsonb.sql"}],"offset":37108,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/jsonb.sql","splitter":"scanner","sql":"\nselect * from jsonb_to_record('{\"ia2\": [[1, 2], [3, 4]]}') as x(ia2 int4[][])"} @@ -30766,7 +30766,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"99a7208f043e798f9ee4d89c","line":41,"normalized_sql":"ALTER SEQUENCE sequence_test9 AS SMALLINT","occurrences":[{"line":41,"offset":1764,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/sequence.sql"}],"offset":1764,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_SEQ_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/sequence.sql","splitter":"scanner","sql":" -- ok now\nALTER SEQUENCE sequence_test9 AS smallint"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"99a7783edf190b1c4217d528","line":593,"normalized_sql":"EXPLAIN ( VERBOSE , COSTS OFF ) SELECT t1 . c1 , t2 . c2 , t3 . c3 FROM ft2 t1 FULL JOIN ft2 t2 ON ( t1 . c1 = t2 . c1 ) LEFT JOIN ft4 t3 ON ( t2 . c1 = t3 . c1 ) OFFSET 10 LIMIT 10","occurrences":[{"line":593,"offset":28014,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql"}],"offset":28014,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"OK","parser_stmt_type":"EXPLAIN","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql","splitter":"scanner","sql":"\n-- full outer join + left outer join\nEXPLAIN (VERBOSE, COSTS OFF)\nSELECT t1.c1, t2.c2, t3.c3 FROM ft2 t1 FULL JOIN ft2 t2 ON (t1.c1 = t2.c1) LEFT JOIN ft4 t3 ON (t2.c1 = t3.c1) OFFSET 10 LIMIT 10"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"99a8675260413ba3cf325617","line":10,"normalized_sql":"CREATE TABLE deptest ( f1 serial PRIMARY KEY , f2 TEXT )","occurrences":[{"line":10,"offset":146,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/dependency.sql"}],"offset":146,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/dependency.sql","splitter":"scanner","sql":"\n\nCREATE TABLE deptest (f1 serial primary key, f2 text)"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"99aa9b1fedd8e79b004e38dc","line":11,"normalized_sql":"SELECT * FROM \u8a08\u7b97\u6a5f\u7528\u8a9e WHERE \u5206\u985e\u30b3\u30fc\u30c9 ~* '\u4ebaz01\u4e0b'","occurrences":[{"line":11,"offset":671,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":671,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"\u8a08\u7b97\u6a5f\u7528\u8a9e where \u5206\u985e\u30b3\u30fc\u30c9 ~* '\u4ebaz01\u4e0b'","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from \u8a08\u7b97\u6a5f\u7528\u8a9e where \u5206\u985e\u30b3\u30fc\u30c9 ~* '\u4ebaz01\u4e0b'"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"99aa9b1fedd8e79b004e38dc","line":11,"normalized_sql":"SELECT * FROM \u8a08\u7b97\u6a5f\u7528\u8a9e WHERE \u5206\u985e\u30b3\u30fc\u30c9 ~* '\u4ebaz01\u4e0b'","occurrences":[{"line":11,"offset":671,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":671,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from \u8a08\u7b97\u6a5f\u7528\u8a9e where \u5206\u985e\u30b3\u30fc\u30c9 ~* '\u4ebaz01\u4e0b'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"DELETE","has_ast":true,"id":"99ac7a56c1dee282acde580c","line":52,"normalized_sql":"DELETE FROM money_data","occurrences":[{"line":52,"offset":1530,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/money.sql"},{"line":56,"offset":1624,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/money.sql"},{"line":60,"offset":1719,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/money.sql"},{"line":64,"offset":1814,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/money.sql"},{"line":68,"offset":1909,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/money.sql"},{"line":72,"offset":2004,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/money.sql"}],"offset":1530,"oracle_node":"PG_QUERY__NODE__NODE_DELETE_STMT","parser_status":"OK","parser_stmt_type":"DELETE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/money.sql","splitter":"parser","sql":"DELETE FROM money_data"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"INSERT","has_ast":true,"id":"99af1058fa4a93ec597e2e0f","line":302,"normalized_sql":"INSERT INTO FKTABLE VALUES ( 1 , 2 , 7 , 6 )","occurrences":[{"line":302,"offset":9422,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/foreign_key.sql"},{"line":366,"offset":11445,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/foreign_key.sql"},{"line":419,"offset":13077,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/foreign_key.sql"},{"line":474,"offset":14835,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/foreign_key.sql"}],"offset":9422,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/foreign_key.sql","splitter":"scanner","sql":"\n\n-- Insert a failed values\nINSERT INTO FKTABLE VALUES (1, 2, 7, 6)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"INSERT","has_ast":true,"id":"99af2d3dfef502b5dca96694","line":31,"normalized_sql":"INSERT INTO FLOAT8_TBL ( f1 ) VALUES ( '5.0.0' )","occurrences":[{"line":31,"offset":807,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/float8.sql"}],"offset":807,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/float8.sql","splitter":"parser","sql":"INSERT INTO FLOAT8_TBL(f1) VALUES ('5.0.0')"} @@ -34927,7 +34927,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"ae81062afaf8e54a82be085c","line":17,"normalized_sql":"CREATE TYPE test_ext_type AS ENUM ( 'x' , 'y' )","occurrences":[{"line":17,"offset":543,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/test_extensions/test_ext_cor--1.0.sql"}],"offset":543,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_ENUM_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/test_extensions/test_ext_cor--1.0.sql","splitter":"scanner","sql":"\n\n-- These are for testing replacement of a shell type/operator, which works\n-- enough like an implicit OR REPLACE to be important to check.\n\nCREATE TYPE test_ext_type AS ENUM('x', 'y')"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"ae81bd7d9f3825adc49bc96c","line":2125,"normalized_sql":"ALTER TABLE tt9 ADD CHECK ( c > 1 )","occurrences":[{"line":2125,"offset":75120,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_table.sql"}],"offset":75120,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_table.sql","splitter":"scanner","sql":"\nALTER TABLE tt9 ADD CHECK(c > 1)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"ae83331f5b987dd97c337d8a","line":1482,"normalized_sql":"SELECT trim_scale ( 1.1234500 )","occurrences":[{"line":1482,"offset":61218,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/numeric.sql"}],"offset":61218,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/numeric.sql","splitter":"scanner","sql":"\nselect trim_scale(1.1234500)"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"ae845886aca7b8f1176c7801","line":4,"normalized_sql":"CREATE INDEX \u8a08\u7b97\u6a5f\u7528\u8a9eindex2 ON \u8a08\u7b97\u6a5f\u7528\u8a9e USING hash ( \u5206\u985e\u30b3\u30fc\u30c9 )","occurrences":[{"line":4,"offset":198,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":198,"oracle_node":"PG_QUERY__NODE__NODE_INDEX_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"\u8a08\u7b97\u6a5f\u7528\u8a9eindex2 on \u8a08\u7b97\u6a5f\u7528\u8a9e using hash (\u5206\u985e\u30b3\u30fc\u30c9)","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"create index \u8a08\u7b97\u6a5f\u7528\u8a9eindex2 on \u8a08\u7b97\u6a5f\u7528\u8a9e using hash (\u5206\u985e\u30b3\u30fc\u30c9)"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"ae845886aca7b8f1176c7801","line":4,"normalized_sql":"CREATE INDEX \u8a08\u7b97\u6a5f\u7528\u8a9eindex2 ON \u8a08\u7b97\u6a5f\u7528\u8a9e USING hash ( \u5206\u985e\u30b3\u30fc\u30c9 )","occurrences":[{"line":4,"offset":198,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":198,"oracle_node":"PG_QUERY__NODE__NODE_INDEX_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"create index \u8a08\u7b97\u6a5f\u7528\u8a9eindex2 on \u8a08\u7b97\u6a5f\u7528\u8a9e using hash (\u5206\u985e\u30b3\u30fc\u30c9)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"ae87f2de2f1382b404f3b648","line":147,"normalized_sql":"ALTER USER SESSION_ROLE WITH NOREPLICATION","occurrences":[{"line":147,"offset":4705,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/unsafe_tests/sql/rolenames.sql"}],"offset":4705,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_ROLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/unsafe_tests/sql/rolenames.sql","splitter":"scanner","sql":" -- error\nALTER USER SESSION_ROLE WITH NOREPLICATION"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"DROP","has_ast":true,"id":"ae88f2ce1052bd3615f58017","line":309,"normalized_sql":"DROP VIEW insertconflictv","occurrences":[{"line":309,"offset":16282,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/insert_conflict.sql"}],"offset":16282,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"OK","parser_stmt_type":"DROP","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/insert_conflict.sql","splitter":"parser","sql":"drop view insertconflictv"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"ae89827908ed3ce2b18182f5","line":16,"normalized_sql":"ALTER ROLE regress_passwd2 PASSWORD 'role_pwd2'","occurrences":[{"line":16,"offset":423,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/password.sql"}],"offset":423,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_ROLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/password.sql","splitter":"parser","sql":"ALTER ROLE regress_passwd2 PASSWORD 'role_pwd2'"} @@ -35118,7 +35118,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ANALYZE","has_ast":true,"id":"af609e5af422e9bda02d3c37","line":174,"normalized_sql":"ANALYZE e_star","occurrences":[{"line":174,"offset":4504,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_misc.sql"}],"offset":4504,"oracle_node":"PG_QUERY__NODE__NODE_VACUUM_STMT","parser_status":"OK","parser_stmt_type":"ANALYZE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_misc.sql","splitter":"parser","sql":"ANALYZE e_star"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"GRANT","has_ast":true,"id":"af612780e2036efa6ef1278a","line":52,"normalized_sql":"GRANT usage ON LANGUAGE plperl TO regress_plperl_user2","occurrences":[{"line":52,"offset":1249,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plperl/sql/plperl_setup.sql"}],"offset":1249,"oracle_node":"PG_QUERY__NODE__NODE_GRANT_STMT","parser_status":"OK","parser_stmt_type":"GRANT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plperl/sql/plperl_setup.sql","splitter":"scanner","sql":"\n\ngrant usage on language plperl to regress_plperl_user2"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"af61fdb8affdbc2780077576","line":52,"normalized_sql":"SELECT ts_lexize ( 'intdict' , '641439323669' )","occurrences":[{"line":52,"offset":1981,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/dict_int/sql/dict_int.sql"}],"offset":1981,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/dict_int/sql/dict_int.sql","splitter":"parser","sql":"select ts_lexize('intdict', '641439323669')"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"af6390317ba0d7d8854d07a7","line":19,"normalized_sql":"SELECT * , SUBSTRING ( \u7528\u8a9e FROM 10 FOR 4 ) FROM \u8a08\u7b97\u6a5f\u7528\u8a9e","occurrences":[{"line":19,"offset":1185,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":1185,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"\u7528\u8a9e from 10 for 4) from \u8a08\u7b97\u6a5f\u7528\u8a9e","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select *,substring(\u7528\u8a9e from 10 for 4) from \u8a08\u7b97\u6a5f\u7528\u8a9e"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"af6390317ba0d7d8854d07a7","line":19,"normalized_sql":"SELECT * , SUBSTRING ( \u7528\u8a9e FROM 10 FOR 4 ) FROM \u8a08\u7b97\u6a5f\u7528\u8a9e","occurrences":[{"line":19,"offset":1185,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":1185,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select *,substring(\u7528\u8a9e from 10 for 4) from \u8a08\u7b97\u6a5f\u7528\u8a9e"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"DELETE","has_ast":true,"id":"af65337d0e78c78948fe469e","line":2405,"normalized_sql":"DELETE FROM self_ref WHERE a = 1","occurrences":[{"line":2405,"offset":86702,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/triggers.sql"},{"line":2412,"offset":86919,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/triggers.sql"}],"offset":86702,"oracle_node":"PG_QUERY__NODE__NODE_DELETE_STMT","parser_status":"OK","parser_stmt_type":"DELETE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/triggers.sql","splitter":"scanner","sql":"\n\ndelete from self_ref where a = 1"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"DROP","has_ast":true,"id":"af65ba562542cc7b023eb1be","line":3,"normalized_sql":"DROP EXTENSION IF EXISTS hstore CASCADE","occurrences":[{"line":3,"offset":0,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/hstore_plperl/sql/create_transform.sql"}],"offset":0,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"OK","parser_stmt_type":"DROP","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/hstore_plperl/sql/create_transform.sql","splitter":"scanner","sql":"-- general regression test for transforms\n\nDROP EXTENSION IF EXISTS hstore CASCADE"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"af6a46c9be2e46851f5dad4d","line":15,"normalized_sql":"SELECT count ( * ) FROM test_tablesample TABLESAMPLE SYSTEM ( 100 ) REPEATABLE ( 1 + 2 )","occurrences":[{"line":15,"offset":764,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/tablesample.sql"}],"offset":764,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/tablesample.sql","splitter":"scanner","sql":"\nSELECT count(*) FROM test_tablesample TABLESAMPLE SYSTEM (100) REPEATABLE (1+2)"} @@ -36519,7 +36519,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"INSERT","has_ast":true,"id":"b61cb76bfdb460f542fc1cb8","line":22,"normalized_sql":"INSERT INTO FLOAT4_TBL ( f1 ) VALUES ( '-10e-70' :: float8 )","occurrences":[{"line":22,"offset":705,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/float4.sql"}],"offset":705,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/float4.sql","splitter":"parser","sql":"INSERT INTO FLOAT4_TBL(f1) VALUES ('-10e-70'::float8)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ANALYZE","has_ast":true,"id":"b61e1ca8fff85f3ffd751601","line":250,"normalized_sql":"ANALYZE vactst , vacparted","occurrences":[{"line":250,"offset":9507,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/vacuum.sql"}],"offset":9507,"oracle_node":"PG_QUERY__NODE__NODE_VACUUM_STMT","parser_status":"OK","parser_stmt_type":"ANALYZE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/vacuum.sql","splitter":"scanner","sql":"\nANALYZE vactst, vacparted"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"b61e8396d67d5bdbe3c259a5","line":40,"normalized_sql":"SELECT * FROM test_argresult_uint2 ( NULL , 1 )","occurrences":[{"line":40,"offset":979,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpgsql/src/sql/plpgsql_domain.sql"}],"offset":979,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpgsql/src/sql/plpgsql_domain.sql","splitter":"parser","sql":"SELECT * FROM test_argresult_uint2(null, 1)"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"b61f8504e316d3b54e162ab7","line":2,"normalized_sql":"CREATE TABLE \u8a08\u7b97\u6a5f\u7528\u8a9e ( \u7528\u8a9e TEXT , \u5206\u985e\u30b3\u30fc\u30c9 VARCHAR , \u5099\u80031A\u3060\u3088 CHAR ( 16 ) )","occurrences":[{"line":2,"offset":28,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":28,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"\u8a08\u7b97\u6a5f\u7528\u8a9e (\u7528\u8a9e text, \u5206\u985e\u30b3\u30fc\u30c9 varchar, \u5099\u80031A\u3060\u3088 char(16))","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"create table \u8a08\u7b97\u6a5f\u7528\u8a9e (\u7528\u8a9e text, \u5206\u985e\u30b3\u30fc\u30c9 varchar, \u5099\u80031A\u3060\u3088 char(16))"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"b61f8504e316d3b54e162ab7","line":2,"normalized_sql":"CREATE TABLE \u8a08\u7b97\u6a5f\u7528\u8a9e ( \u7528\u8a9e TEXT , \u5206\u985e\u30b3\u30fc\u30c9 VARCHAR , \u5099\u80031A\u3060\u3088 CHAR ( 16 ) )","occurrences":[{"line":2,"offset":28,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":28,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"create table \u8a08\u7b97\u6a5f\u7528\u8a9e (\u7528\u8a9e text, \u5206\u985e\u30b3\u30fc\u30c9 varchar, \u5099\u80031A\u3060\u3088 char(16))"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"DROP","has_ast":true,"id":"b61f94363cadbb7101ea9734","line":169,"normalized_sql":"DROP TRIGGER stupid_trigger1 ON trigger_test","occurrences":[{"line":169,"offset":4700,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpython/sql/plpython_trigger.sql"}],"offset":4700,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"OK","parser_stmt_type":"DROP","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpython/sql/plpython_trigger.sql","splitter":"parser","sql":"DROP TRIGGER stupid_trigger1 ON trigger_test"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"DROP","has_ast":true,"id":"b620d823167eb1c15e646e4e","line":1060,"normalized_sql":"DROP OPERATOR FAMILY my_op_family USING btree","occurrences":[{"line":1060,"offset":55660,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql"}],"offset":55660,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"OK","parser_stmt_type":"DROP","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql","splitter":"scanner","sql":"\ndrop operator family my_op_family using btree"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"b6210f2edf69d5135524cb32","line":1056,"normalized_sql":"CREATE TRIGGER self_ref_trigger_ins_trig BEFORE INSERT ON self_ref_trigger FOR EACH ROW EXECUTE PROCEDURE self_ref_trigger_ins_func ( )","occurrences":[{"line":1056,"offset":33544,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/triggers.sql"}],"offset":33544,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_TRIG_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/triggers.sql","splitter":"scanner","sql":"\ncreate trigger self_ref_trigger_ins_trig before insert on self_ref_trigger\n for each row execute procedure self_ref_trigger_ins_func()"} @@ -36858,7 +36858,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"INSERT","has_ast":true,"id":"b7be225a261134ff1ec79fb0","line":472,"normalized_sql":"INSERT INTO temporal_mltrng ( id , valid_at ) VALUES ( '[1,2)' , datemultirange ( daterange ( '2018-03-03' , '2018-04-04' ) ) )","occurrences":[{"line":472,"offset":15318,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql"},{"line":497,"offset":16603,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql"}],"offset":15318,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/without_overlaps.sql","splitter":"scanner","sql":"\nINSERT INTO temporal_mltrng (id, valid_at) VALUES ('[1,2)', datemultirange(daterange('2018-03-03', '2018-04-04')))"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"b7c02295c435b742055c9d8e","line":149,"normalized_sql":"CREATE FUNCTION hobbies_by_name ( hobbies_r . NAME % TYPE ) RETURNS hobbies_r . person % TYPE AS 'select person from hobbies_r where name = $1' LANGUAGE SQL","occurrences":[{"line":149,"offset":3059,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/misc.sql"}],"offset":3059,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_FUNCTION_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"%TYPE\n AS 'select person from hobbies_r where name = $1'\n LANGUAGE SQL","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/misc.sql","splitter":"scanner","sql":"\n\nCREATE FUNCTION hobbies_by_name(hobbies_r.name%TYPE)\n RETURNS hobbies_r.person%TYPE\n AS 'select person from hobbies_r where name = $1'\n LANGUAGE SQL"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"DECLARE_CURSOR","has_ast":true,"id":"b7c0693279aca4f8cb56efe3","line":51,"normalized_sql":"DECLARE rf_cur SCROLL CURSOR FOR SELECT * FROM ROWS FROM ( generate_series ( 1 , 5 ) , generate_series ( 1 , 2 ) ) WITH ORDINALITY AS g ( i , j , o )","occurrences":[{"line":51,"offset":2668,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/rangefuncs.sql"}],"offset":2668,"oracle_node":"PG_QUERY__NODE__NODE_DECLARE_CURSOR_STMT","parser_status":"OK","parser_stmt_type":"DECLARE_CURSOR","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/rangefuncs.sql","splitter":"parser","sql":"declare rf_cur scroll cursor for select * from rows from(generate_series(1,5),generate_series(1,2)) with ordinality as g(i,j,o)"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"b7c15dc007ada6fa77dd4d6e","line":3,"normalized_sql":"CREATE INDEX \u8a08\u7b97\u6a5f\u7528\u8a9eindex1 ON \u8a08\u7b97\u6a5f\u7528\u8a9e USING btree ( \u7528\u8a9e )","occurrences":[{"line":3,"offset":122,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":122,"oracle_node":"PG_QUERY__NODE__NODE_INDEX_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"\u8a08\u7b97\u6a5f\u7528\u8a9eindex1 on \u8a08\u7b97\u6a5f\u7528\u8a9e using btree (\u7528\u8a9e)","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"create index \u8a08\u7b97\u6a5f\u7528\u8a9eindex1 on \u8a08\u7b97\u6a5f\u7528\u8a9e using btree (\u7528\u8a9e)"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"b7c15dc007ada6fa77dd4d6e","line":3,"normalized_sql":"CREATE INDEX \u8a08\u7b97\u6a5f\u7528\u8a9eindex1 ON \u8a08\u7b97\u6a5f\u7528\u8a9e USING btree ( \u7528\u8a9e )","occurrences":[{"line":3,"offset":122,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":122,"oracle_node":"PG_QUERY__NODE__NODE_INDEX_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"create index \u8a08\u7b97\u6a5f\u7528\u8a9eindex1 on \u8a08\u7b97\u6a5f\u7528\u8a9e using btree (\u7528\u8a9e)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"b7c1757373efdbc9b737c408","line":87,"normalized_sql":"CREATE ROLE regress_passwd_sha_len0 PASSWORD 'SCRAM-SHA-256$4096:A6xHKoH/494E941doaPOYg==$Ky+A30sewHIH3VHQLRN9vYsuzlgNyGNKCh37dy96Rqw=:COPdlNiIkrsacU5QoxydEuOH6e/KfiipeETb/bPw8ZI='","occurrences":[{"line":87,"offset":3719,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/password.sql"}],"offset":3719,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_ROLE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/password.sql","splitter":"parser","sql":"CREATE ROLE regress_passwd_sha_len0 PASSWORD 'SCRAM-SHA-256$4096:A6xHKoH/494E941doaPOYg==$Ky+A30sewHIH3VHQLRN9vYsuzlgNyGNKCh37dy96Rqw=:COPdlNiIkrsacU5QoxydEuOH6e/KfiipeETb/bPw8ZI='"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"b7c1bbc1ef7b9936d4bbd4ec","line":612,"normalized_sql":"CREATE RULE pg_settings_n AS ON UPDATE TO pg_settings DO INSTEAD NOTHING","occurrences":[{"line":612,"offset":22490,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/backend/catalog/system_views.sql"}],"offset":22490,"oracle_node":"PG_QUERY__NODE__NODE_RULE_STMT","parser_status":"ERROR","parser_stmt_type":"CREATE","remaining":"RULE pg_settings_n AS\n ON UPDATE TO pg_settings\n DO INSTEAD NOTHING","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/backend/catalog/system_views.sql","splitter":"parser","sql":"CREATE RULE pg_settings_n AS\n ON UPDATE TO pg_settings\n DO INSTEAD NOTHING"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"b7c51d0e097cfb2a98bf91cf","line":18,"normalized_sql":"CREATE ROLE regress_datdba_after","occurrences":[{"line":18,"offset":665,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/database.sql"}],"offset":665,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_ROLE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/database.sql","splitter":"parser","sql":"CREATE ROLE regress_datdba_after"} @@ -41495,7 +41495,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"ce7b985aa215f170b431e3bb","line":221,"normalized_sql":"SELECT a , b :: testdomain FROM collate_test1 ORDER BY 2","occurrences":[{"line":221,"offset":7129,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.icu.utf8.sql"},{"line":224,"offset":7112,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.linux.utf8.sql"},{"line":120,"offset":3954,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.sql"}],"offset":7129,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.icu.utf8.sql","splitter":"scanner","sql":"\nSELECT a, b::testdomain FROM collate_test1 ORDER BY 2"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"ce7d09b9ce0999d5ca12ac94","line":127,"normalized_sql":"ALTER FUNCTION gbt_cash_fetch ( internal ) PARALLEL SAFE","occurrences":[{"line":127,"offset":8666,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/btree_gist--1.5--1.6.sql"}],"offset":8666,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_FUNCTION_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/btree_gist/btree_gist--1.5--1.6.sql","splitter":"scanner","sql":"\nALTER FUNCTION gbt_cash_fetch(internal) PARALLEL SAFE"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"ce7d36c737b35fb821d48363","line":534,"normalized_sql":"CREATE VIEW column_domain_usage AS SELECT CAST ( current_database ( ) AS sql_identifier ) AS domain_catalog , CAST ( nt . nspname AS sql_identifier ) AS domain_schema , CAST ( t . typname AS sql_identifier ) AS domain_name , CAST ( current_database ( ) AS sql_identifier ) AS table_catalog , CAST ( nc . nspname AS sql_identifier ) AS table_schema , CAST ( c . relname AS sql_identifier ) AS table_name , CAST ( a . attname AS sql_identifier ) AS column_name FROM pg_type t , pg_namespace nt , pg_class c , pg_namespace nc , pg_attribute a WHERE t . typnamespace = nt . oid AND c . relnamespace = nc . oid AND a . attrelid = c . oid AND a . atttypid = t . oid AND t . typtype = 'd' AND c . relkind IN ( 'r' , 'v' , 'f' , 'p' ) AND a . attnum > 0 AND NOT a . attisdropped AND pg_has_role ( t . typowner , 'USAGE' )","occurrences":[{"line":534,"offset":17819,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/backend/catalog/information_schema.sql"}],"offset":17819,"oracle_node":"PG_QUERY__NODE__NODE_VIEW_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/backend/catalog/information_schema.sql","splitter":"parser","sql":"CREATE VIEW column_domain_usage AS\n SELECT CAST(current_database() AS sql_identifier) AS domain_catalog,\n CAST(nt.nspname AS sql_identifier) AS domain_schema,\n CAST(t.typname AS sql_identifier) AS domain_name,\n CAST(current_database() AS sql_identifier) AS table_catalog,\n CAST(nc.nspname AS sql_identifier) AS table_schema,\n CAST(c.relname AS sql_identifier) AS table_name,\n CAST(a.attname AS sql_identifier) AS column_name\n\n FROM pg_type t, pg_namespace nt, pg_class c, pg_namespace nc,\n pg_attribute a\n\n WHERE t.typnamespace = nt.oid\n AND c.relnamespace = nc.oid\n AND a.attrelid = c.oid\n AND a.atttypid = t.oid\n AND t.typtype = 'd'\n AND c.relkind IN ('r', 'v', 'f', 'p')\n AND a.attnum > 0\n AND NOT a.attisdropped\n AND pg_has_role(t.typowner, 'USAGE')"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"ce7da3e2130168aef6c19eb9","line":17,"normalized_sql":"SELECT * , octet_length ( \u7528\u8a9e ) FROM \u8a08\u7b97\u6a5f\u7528\u8a9e","occurrences":[{"line":17,"offset":1076,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":1076,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"\u7528\u8a9e) from \u8a08\u7b97\u6a5f\u7528\u8a9e","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select *,octet_length(\u7528\u8a9e) from \u8a08\u7b97\u6a5f\u7528\u8a9e"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"ce7da3e2130168aef6c19eb9","line":17,"normalized_sql":"SELECT * , octet_length ( \u7528\u8a9e ) FROM \u8a08\u7b97\u6a5f\u7528\u8a9e","occurrences":[{"line":17,"offset":1076,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":1076,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select *,octet_length(\u7528\u8a9e) from \u8a08\u7b97\u6a5f\u7528\u8a9e"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"EXPLAIN","has_ast":true,"id":"ce7e087534eb20b9c8da73be","line":1327,"normalized_sql":"EXPLAIN ( costs OFF ) SELECT a , abs ( b ) FROM mcrparted ORDER BY a , abs ( b ) , c","occurrences":[{"line":1327,"offset":54557,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql"}],"offset":54557,"oracle_node":"PG_QUERY__NODE__NODE_EXPLAIN_STMT","parser_status":"OK","parser_stmt_type":"EXPLAIN","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql","splitter":"scanner","sql":"\n\n-- check that an Append plan is used and the sub-partitions are flattened\n-- into the main Append when the sub-partition is unordered but contains\n-- just a single sub-partition.\nexplain (costs off) select a, abs(b) from mcrparted order by a, abs(b), c"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"ce7f418e2b63a7ddd847bcb7","line":574,"normalized_sql":"CREATE TEMPORARY TABLE result AS ( SELECT * FROM dblink_get_result ( 'myconn' ) AS t ( t timestamptz ) ) UNION ALL ( SELECT * FROM dblink_get_result ( 'myconn' ) AS t ( t timestamptz ) )","occurrences":[{"line":574,"offset":19474,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/dblink/sql/dblink.sql"}],"offset":19474,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_TABLE_AS_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/dblink/sql/dblink.sql","splitter":"scanner","sql":"\nCREATE TEMPORARY TABLE result AS\n(SELECT * from dblink_get_result('myconn') as t(t timestamptz))\nUNION ALL\n(SELECT * from dblink_get_result('myconn') as t(t timestamptz))"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"ce7f8d5591772f4d88d0c2ea","line":1143,"normalized_sql":"CREATE VIEW parameters AS SELECT CAST ( current_database ( ) AS sql_identifier ) AS specific_catalog , CAST ( n_nspname AS sql_identifier ) AS specific_schema , CAST ( nameconcatoid ( proname , p_oid ) AS sql_identifier ) AS specific_name , CAST ( ( ss . x ) . n AS cardinal_number ) AS ordinal_position , CAST ( CASE WHEN proargmodes IS NULL THEN 'IN' WHEN proargmodes [ ( ss . x ) . n ] = 'i' THEN 'IN' WHEN proargmodes [ ( ss . x ) . n ] = 'o' THEN 'OUT' WHEN proargmodes [ ( ss . x ) . n ] = 'b' THEN 'INOUT' WHEN proargmodes [ ( ss . x ) . n ] = 'v' THEN 'IN' WHEN proargmodes [ ( ss . x ) . n ] = 't' THEN 'OUT' END AS character_data ) AS parameter_mode , CAST ( 'NO' AS yes_or_no ) AS is_result , CAST ( 'NO' AS yes_or_no ) AS as_locator , CAST ( NULLIF ( proargnames [ ( ss . x ) . n ] , '' ) AS sql_identifier ) AS parameter_name , CAST ( CASE WHEN t . typelem <> 0 AND t . typlen = - 1 THEN 'ARRAY' WHEN nt . nspname = 'pg_catalog' THEN format_type ( t . oid , NULL ) ELSE 'USER-DEFINED' END AS character_data ) AS data_type , CAST ( NULL AS cardinal_number ) AS character_maximum_length , CAST ( NULL AS cardinal_number ) AS character_octet_length , CAST ( NULL AS sql_identifier ) AS character_set_catalog , CAST ( NULL AS sql_identifier ) AS character_set_schema , CAST ( NULL AS sql_identifier ) AS character_set_name , CAST ( NULL AS sql_identifier ) AS collation_catalog , CAST ( NULL AS sql_identifier ) AS collation_schema , CAST ( NULL AS sql_identifier ) AS collation_name , CAST ( NULL AS cardinal_number ) AS numeric_precision , CAST ( NULL AS cardinal_number ) AS numeric_precision_radix , CAST ( NULL AS cardinal_number ) AS numeric_scale , CAST ( NULL AS cardinal_number ) AS datetime_precision , CAST ( NULL AS character_data ) AS interval_type , CAST ( NULL AS cardinal_number ) AS interval_precision , CAST ( current_database ( ) AS sql_identifier ) AS udt_catalog , CAST ( nt . nspname AS sql_identifier ) AS udt_schema , CAST ( t . typname AS sql_identifier ) AS udt_name , CAST ( NULL AS sql_identifier ) AS scope_catalog , CAST ( NULL AS sql_identifier ) AS scope_schema , CAST ( NULL AS sql_identifier ) AS scope_name , CAST ( NULL AS cardinal_number ) AS maximum_cardinality , CAST ( ( ss . x ) . n AS sql_identifier ) AS dtd_identifier , CAST ( CASE WHEN pg_has_role ( proowner , 'USAGE' ) THEN pg_get_function_arg_default ( p_oid , ( ss . x ) . n ) ELSE NULL END AS character_data ) AS parameter_default FROM pg_type t , pg_namespace nt , ( SELECT n . nspname AS n_nspname , p . proname , p . oid AS p_oid , p . proowner , p . proargnames , p . proargmodes , _pg_expandarray ( COALESCE ( p . proallargtypes , p . proargtypes :: oid [ ] ) ) AS x FROM pg_namespace n , pg_proc p WHERE n . oid = p . pronamespace AND ( pg_has_role ( p . proowner , 'USAGE' ) OR has_function_privilege ( p . oid , 'EXECUTE' ) ) ) AS ss WHERE t . oid = ( ss . x ) . x AND t . typnamespace = nt . oid","occurrences":[{"line":1143,"offset":40216,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/backend/catalog/information_schema.sql"}],"offset":40216,"oracle_node":"PG_QUERY__NODE__NODE_VIEW_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/backend/catalog/information_schema.sql","splitter":"parser","sql":"CREATE VIEW parameters AS\n SELECT CAST(current_database() AS sql_identifier) AS specific_catalog,\n CAST(n_nspname AS sql_identifier) AS specific_schema,\n CAST(nameconcatoid(proname, p_oid) AS sql_identifier) AS specific_name,\n CAST((ss.x).n AS cardinal_number) AS ordinal_position,\n CAST(\n CASE WHEN proargmodes IS NULL THEN 'IN'\n WHEN proargmodes[(ss.x).n] = 'i' THEN 'IN'\n WHEN proargmodes[(ss.x).n] = 'o' THEN 'OUT'\n WHEN proargmodes[(ss.x).n] = 'b' THEN 'INOUT'\n WHEN proargmodes[(ss.x).n] = 'v' THEN 'IN'\n WHEN proargmodes[(ss.x).n] = 't' THEN 'OUT'\n END AS character_data) AS parameter_mode,\n CAST('NO' AS yes_or_no) AS is_result,\n CAST('NO' AS yes_or_no) AS as_locator,\n CAST(NULLIF(proargnames[(ss.x).n], '') AS sql_identifier) AS parameter_name,\n CAST(\n CASE WHEN t.typelem <> 0 AND t.typlen = -1 THEN 'ARRAY'\n WHEN nt.nspname = 'pg_catalog' THEN format_type(t.oid, null)\n ELSE 'USER-DEFINED' END AS character_data)\n AS data_type,\n CAST(null AS cardinal_number) AS character_maximum_length,\n CAST(null AS cardinal_number) AS character_octet_length,\n CAST(null AS sql_identifier) AS character_set_catalog,\n CAST(null AS sql_identifier) AS character_set_schema,\n CAST(null AS sql_identifier) AS character_set_name,\n CAST(null AS sql_identifier) AS collation_catalog,\n CAST(null AS sql_identifier) AS collation_schema,\n CAST(null AS sql_identifier) AS collation_name,\n CAST(null AS cardinal_number) AS numeric_precision,\n CAST(null AS cardinal_number) AS numeric_precision_radix,\n CAST(null AS cardinal_number) AS numeric_scale,\n CAST(null AS cardinal_number) AS datetime_precision,\n CAST(null AS character_data) AS interval_type,\n CAST(null AS cardinal_number) AS interval_precision,\n CAST(current_database() AS sql_identifier) AS udt_catalog,\n CAST(nt.nspname AS sql_identifier) AS udt_schema,\n CAST(t.typname AS sql_identifier) AS udt_name,\n CAST(null AS sql_identifier) AS scope_catalog,\n CAST(null AS sql_identifier) AS scope_schema,\n CAST(null AS sql_identifier) AS scope_name,\n CAST(null AS cardinal_number) AS maximum_cardinality,\n CAST((ss.x).n AS sql_identifier) AS dtd_identifier,\n CAST(\n CASE WHEN pg_has_role(proowner, 'USAGE')\n THEN pg_get_function_arg_default(p_oid, (ss.x).n)\n ELSE NULL END\n AS character_data) AS parameter_default\n\n FROM pg_type t, pg_namespace nt,\n (SELECT n.nspname AS n_nspname, p.proname, p.oid AS p_oid, p.proowner,\n p.proargnames, p.proargmodes,\n _pg_expandarray(coalesce(p.proallargtypes, p.proargtypes::oid[])) AS x\n FROM pg_namespace n, pg_proc p\n WHERE n.oid = p.pronamespace\n AND (pg_has_role(p.proowner, 'USAGE') OR\n has_function_privilege(p.oid, 'EXECUTE'))) AS ss\n WHERE t.oid = (ss.x).x AND t.typnamespace = nt.oid"} @@ -41818,7 +41818,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SET","has_ast":true,"id":"cff94d1cf0b77c4a8d2670fe","line":525,"normalized_sql":"SET SESSION AUTHORIZATION regress_parallel_worker","occurrences":[{"line":525,"offset":17189,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/select_parallel.sql"}],"offset":17189,"oracle_node":"PG_QUERY__NODE__NODE_VARIABLE_SET_STMT","parser_status":"OK","parser_stmt_type":"SET","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/select_parallel.sql","splitter":"scanner","sql":"\nset session authorization regress_parallel_worker"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"cffaee2dfc23a040cc61519f","line":63,"normalized_sql":"ALTER TYPE planets ADD VALUE 'pluto' AFTER 'zeus'","occurrences":[{"line":63,"offset":1435,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/enum.sql"}],"offset":1435,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_ENUM_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/enum.sql","splitter":"scanner","sql":"\n\nALTER TYPE planets ADD VALUE 'pluto' AFTER 'zeus'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"REVOKE","has_ast":true,"id":"cffcf2244a8d238289297b88","line":720,"normalized_sql":"REVOKE EXECUTE ON FUNCTION pg_ls_tmpdir ( oid ) FROM public","occurrences":[{"line":720,"offset":21823,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/backend/catalog/system_functions.sql"}],"offset":21823,"oracle_node":"PG_QUERY__NODE__NODE_GRANT_STMT","parser_status":"OK","parser_stmt_type":"REVOKE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/backend/catalog/system_functions.sql","splitter":"parser","sql":"REVOKE EXECUTE ON FUNCTION pg_ls_tmpdir(oid) FROM public"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"VACUUM","has_ast":true,"id":"d000619583de4f04de5994cc","line":8,"normalized_sql":"VACUUM \u8a08\u7b97\u6a5f\u7528\u8a9e","occurrences":[{"line":8,"offset":549,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":549,"oracle_node":"PG_QUERY__NODE__NODE_VACUUM_STMT","parser_status":"ERROR","parser_stmt_type":"VACUUM","remaining":"\u8a08\u7b97\u6a5f\u7528\u8a9e","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"vacuum \u8a08\u7b97\u6a5f\u7528\u8a9e"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"VACUUM","has_ast":true,"id":"d000619583de4f04de5994cc","line":8,"normalized_sql":"VACUUM \u8a08\u7b97\u6a5f\u7528\u8a9e","occurrences":[{"line":8,"offset":549,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":549,"oracle_node":"PG_QUERY__NODE__NODE_VACUUM_STMT","parser_status":"OK","parser_stmt_type":"VACUUM","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"vacuum \u8a08\u7b97\u6a5f\u7528\u8a9e"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"d004547a95e2506a2f496d72","line":149,"normalized_sql":"CREATE VIEW vw_getrngfunc AS SELECT * FROM getrngfunc6 ( 1 ) AS ( rngfuncid INT , rngfuncsubid INT , rngfuncname TEXT )","occurrences":[{"line":149,"offset":7062,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/rangefuncs.sql"}],"offset":7062,"oracle_node":"PG_QUERY__NODE__NODE_VIEW_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/rangefuncs.sql","splitter":"parser","sql":"CREATE VIEW vw_getrngfunc AS SELECT * FROM getrngfunc6(1) AS\n(rngfuncid int, rngfuncsubid int, rngfuncname text)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"d0046604c51595a8688bbd66","line":177,"normalized_sql":"SELECT f . f1 , ||/ f . f1 AS cbrt_f1 FROM FLOAT8_TBL f","occurrences":[{"line":177,"offset":5042,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/float8.sql"}],"offset":5042,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/float8.sql","splitter":"parser","sql":"SELECT f.f1, ||/f.f1 AS cbrt_f1 FROM FLOAT8_TBL f"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"d0078fc0b1c519e6bdcbe38c","line":883,"normalized_sql":"SELECT websearch_to_tsquery ( 'english' , '\"A fat cat\" has just eaten a -rat.' )","occurrences":[{"line":883,"offset":37514,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/tsearch.sql"}],"offset":37514,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/tsearch.sql","splitter":"scanner","sql":"\n\nselect websearch_to_tsquery('english', '\"A fat cat\" has just eaten a -rat.')"} @@ -41970,7 +41970,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"d0c2546ab2a186b3a96e7405","line":715,"normalized_sql":"SELECT tableoid :: regclass FROM volatile_partbound_test","occurrences":[{"line":715,"offset":28908,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_table.sql"}],"offset":28908,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/create_table.sql","splitter":"scanner","sql":"\nselect tableoid::regclass from volatile_partbound_test"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"d0c6081820e3c245eb15ba56","line":809,"normalized_sql":"CREATE OR REPLACE FUNCTION dom_check ( INT ) RETURNS di AS $$\ndeclare d di;\nbegin\n d := $1;\n return d;\nend\n$$ LANGUAGE plpgsql IMMUTABLE","occurrences":[{"line":809,"offset":24461,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/domain.sql"}],"offset":24461,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_FUNCTION_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/domain.sql","splitter":"scanner","sql":"\n\n-- implicit cast during assignment is a separate code path, test that too\n\ncreate or replace function dom_check(int) returns di as $$\ndeclare d di;\nbegin\n d := $1;\n return d;\nend\n$$ language plpgsql immutable"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"COMMENT","has_ast":true,"id":"d0c6af6484bf6dc28603d6d0","line":20,"normalized_sql":"COMMENT ON LANGUAGE plpgsql IS 'PL/pgSQL procedural language'","occurrences":[{"line":20,"offset":593,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpgsql/src/plpgsql--1.0.sql"}],"offset":593,"oracle_node":"PG_QUERY__NODE__NODE_COMMENT_STMT","parser_status":"OK","parser_stmt_type":"COMMENT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpgsql/src/plpgsql--1.0.sql","splitter":"scanner","sql":"\n\nCOMMENT ON LANGUAGE plpgsql IS 'PL/pgSQL procedural language'"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SET","has_ast":true,"id":"d0c6c1770b30efe94cdf88ff","line":156,"normalized_sql":"SET LOCAL TIME ZONE - 8","occurrences":[{"line":156,"offset":5152,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/json.sql"},{"line":119,"offset":3918,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/jsonb.sql"}],"offset":5152,"oracle_node":"PG_QUERY__NODE__NODE_VARIABLE_SET_STMT","parser_status":"OK","parser_stmt_type":"SET","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/json.sql","splitter":"parser","sql":"SET LOCAL TIME ZONE -8"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SET","has_ast":false,"id":"d0c6c1770b30efe94cdf88ff","line":156,"normalized_sql":"SET LOCAL TIME ZONE - 8","occurrences":[{"line":156,"offset":5152,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/json.sql"},{"line":119,"offset":3918,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/jsonb.sql"}],"offset":5152,"oracle_node":"PG_QUERY__NODE__NODE_VARIABLE_SET_STMT","parser_status":"ERROR","parser_stmt_type":"SET","remaining":"ZONE -8","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/json.sql","splitter":"parser","sql":"SET LOCAL TIME ZONE -8"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"d0c771c2d3d77aa6b4bf1a40","line":604,"normalized_sql":"ALTER TABLE atacc1 ADD CHECK ( test2 > test )","occurrences":[{"line":604,"offset":22372,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_table.sql"}],"offset":22372,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_table.sql","splitter":"scanner","sql":"\nalter table atacc1 add check (test2>test)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"d0c87a03a4bc6096b1a1bcbb","line":288,"normalized_sql":"SELECT nummultirange ( numrange ( 1 , 6 ) ) &< numrange ( 3 , 4 )","occurrences":[{"line":288,"offset":14055,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/multirangetypes.sql"}],"offset":14055,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/multirangetypes.sql","splitter":"scanner","sql":"\nSELECT nummultirange(numrange(1,6)) &< numrange(3,4)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"d0c9212b9db4600e283c24be","line":246,"normalized_sql":"SELECT end_label1 ( )","occurrences":[{"line":246,"offset":5077,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpgsql/src/sql/plpgsql_control.sql"}],"offset":5077,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpgsql/src/sql/plpgsql_control.sql","splitter":"parser","sql":"select end_label1()"} @@ -43539,7 +43539,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"d89a714a4a8802b95bad5dea","line":128,"normalized_sql":"CREATE FUNCTION DELETE ( hstore , TEXT [ ] ) RETURNS hstore AS 'MODULE_PATHNAME' , 'hstore_delete_array' LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE","occurrences":[{"line":128,"offset":2918,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/hstore/hstore--1.4.sql"}],"offset":2918,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_FUNCTION_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/hstore/hstore--1.4.sql","splitter":"scanner","sql":"\n\nCREATE FUNCTION delete(hstore,text[])\nRETURNS hstore\nAS 'MODULE_PATHNAME','hstore_delete_array'\nLANGUAGE C STRICT IMMUTABLE PARALLEL SAFE"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"d89b38f1f1b4e44ee9604fd9","line":3984,"normalized_sql":"SELECT * FROM join_tbl ORDER BY a1","occurrences":[{"line":3984,"offset":163201,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql"},{"line":3991,"offset":163620,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql"},{"line":4003,"offset":164066,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql"},{"line":4161,"offset":169832,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql"}],"offset":163201,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql","splitter":"scanner","sql":"\n\nSELECT * FROM join_tbl ORDER BY a1"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"d89c820a50e57c206229a524","line":143,"normalized_sql":"SELECT ( count ( * ) FILTER ( WHERE r < - 2104533975 ) ) > 0 AS has_small , ( count ( * ) FILTER ( WHERE r > 2104533974 ) ) > 0 AS has_large FROM ( SELECT random ( - 2147483648 , 2147483647 ) r FROM generate_series ( 1 , 2000 ) ) ss","occurrences":[{"line":143,"offset":4695,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/random.sql"}],"offset":4695,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/random.sql","splitter":"parser","sql":"SELECT (count(*) FILTER (WHERE r < -2104533975)) > 0 AS has_small,\n (count(*) FILTER (WHERE r > 2104533974)) > 0 AS has_large\nFROM (SELECT random(-2147483648, 2147483647) r FROM generate_series(1, 2000)) ss"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"d8a215ade168c188f2a65818","line":9,"normalized_sql":"SELECT * FROM \u8a08\u7b97\u6a5f\u7528\u8a9e","occurrences":[{"line":9,"offset":573,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":573,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"\u8a08\u7b97\u6a5f\u7528\u8a9e","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from \u8a08\u7b97\u6a5f\u7528\u8a9e"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"d8a215ade168c188f2a65818","line":9,"normalized_sql":"SELECT * FROM \u8a08\u7b97\u6a5f\u7528\u8a9e","occurrences":[{"line":9,"offset":573,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":573,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from \u8a08\u7b97\u6a5f\u7528\u8a9e"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"INSERT","has_ast":true,"id":"d8a2a407efb4180e17c5f4b0","line":217,"normalized_sql":"INSERT INTO num_exp_sub VALUES ( 4 , 8 , '7724580.4119' )","occurrences":[{"line":217,"offset":11029,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/numeric.sql"}],"offset":11029,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/numeric.sql","splitter":"scanner","sql":"\nINSERT INTO num_exp_sub VALUES (4,8,'7724580.4119')"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"d8a35042ee0da35d63868bbf","line":203,"normalized_sql":"SELECT '[(-1,-1,-1),(1,1,1)]' :: CUBE && '[(2,1,1),(2,2,2)]' :: CUBE AS bool","occurrences":[{"line":203,"offset":8182,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/cube/sql/cube.sql"}],"offset":8182,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/cube/sql/cube.sql","splitter":"scanner","sql":"\nSELECT '[(-1,-1,-1),(1,1,1)]'::cube && '[(2,1,1),(2,2,2)]'::cube AS bool"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"d8a38905cb6ebb2ca3e6bfae","line":51,"normalized_sql":"SELECT test_create ( FALSE )","occurrences":[{"line":51,"offset":1585,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/test_tidstore/sql/test_tidstore.sql"}],"offset":1585,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/modules/test_tidstore/sql/test_tidstore.sql","splitter":"scanner","sql":"\n\n\n-- Test replacements crossing RT_CHILDPTR_IS_VALUE in both directions\nSELECT test_create(false)"} @@ -45661,7 +45661,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"INSERT","has_ast":true,"id":"e2d48c539dd32c4e1d9f5863","line":2851,"normalized_sql":"INSERT INTO part_hp VALUES ( 1 )","occurrences":[{"line":2851,"offset":106586,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_table.sql"}],"offset":106586,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_table.sql","splitter":"scanner","sql":"\nINSERT INTO part_hp VALUES (1)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"DROP","has_ast":true,"id":"e2d4e1795150a27c3de2fb24","line":1124,"normalized_sql":"DROP PUBLICATION testpub_fortable_forschema","occurrences":[{"line":1124,"offset":49906,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/publication.sql"}],"offset":49906,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"OK","parser_stmt_type":"DROP","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/publication.sql","splitter":"scanner","sql":"\nDROP PUBLICATION testpub_fortable_forschema"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"e2d514cc60581985e5f76895","line":53,"normalized_sql":"ALTER OPERATOR FAMILY gist_ltree_ops USING gist ADD FUNCTION 10 ( ltree ) ltree_gist_options ( internal )","occurrences":[{"line":53,"offset":1375,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/ltree/ltree--1.1--1.2.sql"}],"offset":1375,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_OP_FAMILY_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/ltree/ltree--1.1--1.2.sql","splitter":"scanner","sql":"\n\nALTER OPERATOR FAMILY gist_ltree_ops USING gist\nADD FUNCTION 10 (ltree) ltree_gist_options (internal)"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"INSERT","has_ast":false,"id":"e2d63e3201f2cf3bef49b5f6","line":7,"normalized_sql":"INSERT INTO \u8a08\u7b97\u6a5f\u7528\u8a9e VALUES ( '\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30d7\u30ed\u30b0\u30e9\u30de\u30fc' , '\u4ebaZ01\u4e0b' )","occurrences":[{"line":7,"offset":461,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":461,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"PARTIAL","parser_stmt_type":"INSERT","remaining":"\u00a8\u0088\u7b97\u6a5f\u7528\u8a9e values('\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30d7\u30ed\u30b0\u30e9\u30de\u30fc','\u4ebaZ01\u4e0b')","result":"PARTIAL","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"insert into \u8a08\u7b97\u6a5f\u7528\u8a9e values('\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30d7\u30ed\u30b0\u30e9\u30de\u30fc','\u4ebaZ01\u4e0b')"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"INSERT","has_ast":true,"id":"e2d63e3201f2cf3bef49b5f6","line":7,"normalized_sql":"INSERT INTO \u8a08\u7b97\u6a5f\u7528\u8a9e VALUES ( '\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30d7\u30ed\u30b0\u30e9\u30de\u30fc' , '\u4ebaZ01\u4e0b' )","occurrences":[{"line":7,"offset":461,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":461,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"insert into \u8a08\u7b97\u6a5f\u7528\u8a9e values('\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30d7\u30ed\u30b0\u30e9\u30de\u30fc','\u4ebaZ01\u4e0b')"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"e2d78932aaec1e1d10ad8341","line":254,"normalized_sql":"SELECT nummultirange ( numrange ( NULL , 3 ) ) <@ numrange ( NULL , 5 )","occurrences":[{"line":254,"offset":12251,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/multirangetypes.sql"}],"offset":12251,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/multirangetypes.sql","splitter":"scanner","sql":"\nSELECT nummultirange(numrange(null,3)) <@ numrange(null,5)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"INSERT","has_ast":true,"id":"e2d95e02a4207399b3bc2ba0","line":1132,"normalized_sql":"INSERT INTO inh_nn2 VALUES ( NULL , 'sample' , 1 )","occurrences":[{"line":1132,"offset":44790,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql"}],"offset":44790,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/inherit.sql","splitter":"scanner","sql":"\ninsert into inh_nn2 values(NULL, 'sample', 1)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"e2da214f47ca40f875ed1dbb","line":130,"normalized_sql":"CREATE OR REPLACE FUNCTION date_part ( TEXT , date ) RETURNS DOUBLE PRECISION LANGUAGE SQL IMMUTABLE PARALLEL SAFE STRICT COST 1 RETURN date_part ( $1 , CAST ( $2 AS TIMESTAMP ) )","occurrences":[{"line":130,"offset":3896,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/backend/catalog/system_functions.sql"}],"offset":3896,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_FUNCTION_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"RETURN date_part($1, cast($2 as timestamp))","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/backend/catalog/system_functions.sql","splitter":"parser","sql":"CREATE OR REPLACE FUNCTION date_part(text, date)\n RETURNS double precision\n LANGUAGE sql\n IMMUTABLE PARALLEL SAFE STRICT COST 1\nRETURN date_part($1, cast($2 as timestamp))"} @@ -48143,7 +48143,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"ef036bcd6a201cb6c0ec3eaa","line":1443,"normalized_sql":"SELECT * FROM check_estimated_rows ( 'SELECT * FROM mcv_lists_partial WHERE (a = 0 AND b = 0 AND c = 0) OR (a = 1 AND b = 1 AND c = 1) OR (a = 2 AND b = 2 AND c = 2)' )","occurrences":[{"line":1443,"offset":65955,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/stats_ext.sql"},{"line":1464,"offset":67001,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/stats_ext.sql"}],"offset":65955,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/stats_ext.sql","splitter":"scanner","sql":"\n\nSELECT * FROM check_estimated_rows('SELECT * FROM mcv_lists_partial WHERE (a = 0 AND b = 0 AND c = 0) OR (a = 1 AND b = 1 AND c = 1) OR (a = 2 AND b = 2 AND c = 2)')"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"ef04a2de6272d564a8dc0bad","line":2143,"normalized_sql":"ALTER TABLE fk ADD FOREIGN KEY ( a ) REFERENCES pk ON UPDATE SET NULL ON DELETE SET NULL","occurrences":[{"line":2143,"offset":81757,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/foreign_key.sql"}],"offset":81757,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/foreign_key.sql","splitter":"scanner","sql":"\nALTER TABLE fk ADD FOREIGN KEY (a) REFERENCES pk ON UPDATE SET NULL ON DELETE SET NULL"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"DROP","has_ast":true,"id":"ef063511b420c61cbe1a524c","line":3030,"normalized_sql":"DROP TABLE at_test_sql_partop","occurrences":[{"line":3030,"offset":114268,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_table.sql"}],"offset":114268,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"OK","parser_stmt_type":"DROP","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_table.sql","splitter":"scanner","sql":"\ndrop table at_test_sql_partop"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"ef06fdedf511011e4a3f3d66","line":14,"normalized_sql":"SELECT * FROM \u8a08\u7b97\u6a5f\u7528\u8a9e WHERE \u7528\u8a9e ~ '\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf[\u30c7\u30b0]'","occurrences":[{"line":14,"offset":869,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":869,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"\u8a08\u7b97\u6a5f\u7528\u8a9e where \u7528\u8a9e ~ '\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf[\u30c7\u30b0]'","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from \u8a08\u7b97\u6a5f\u7528\u8a9e where \u7528\u8a9e ~ '\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf[\u30c7\u30b0]'"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"ef06fdedf511011e4a3f3d66","line":14,"normalized_sql":"SELECT * FROM \u8a08\u7b97\u6a5f\u7528\u8a9e WHERE \u7528\u8a9e ~ '\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf[\u30c7\u30b0]'","occurrences":[{"line":14,"offset":869,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":869,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from \u8a08\u7b97\u6a5f\u7528\u8a9e where \u7528\u8a9e ~ '\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf[\u30c7\u30b0]'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"ef08277b487d454801e92ebb","line":3086,"normalized_sql":"SELECT sum ( id ) FROM tru_ptable","occurrences":[{"line":3086,"offset":128056,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql"}],"offset":128056,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql","splitter":"scanner","sql":"\t\t\t-- accepted\n\n-- partitioned table with both local and foreign tables as partitions\nSELECT sum(id) FROM tru_ptable"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"ef09986d4979dd4db61b2d41","line":3029,"normalized_sql":"ALTER TABLE at_test_sql_partop ATTACH PARTITION at_test_sql_partop_1 FOR VALUES FROM ( 0 ) TO ( 10 )","occurrences":[{"line":3029,"offset":114170,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_table.sql"}],"offset":114170,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_table.sql","splitter":"scanner","sql":"\nalter table at_test_sql_partop attach partition at_test_sql_partop_1 for values from (0) to (10)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"ef0a57ab30b3da979367cfef","line":838,"normalized_sql":"SELECT x FROM test3bpci WHERE x SIMILAR TO 'a%'","occurrences":[{"line":838,"offset":32236,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.icu.utf8.sql"}],"offset":32236,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/collate.icu.utf8.sql","splitter":"scanner","sql":"\nSELECT x FROM test3bpci WHERE x SIMILAR TO 'a%'"} @@ -48205,7 +48205,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"ef68a9410a40e9415ebd82b1","line":1326,"normalized_sql":"SELECT 0 ^ 'NaN' :: NUMERIC","occurrences":[{"line":1326,"offset":56909,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/numeric.sql"}],"offset":56909,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/numeric.sql","splitter":"scanner","sql":"\nselect 0 ^ 'NaN'::numeric"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"INSERT","has_ast":true,"id":"ef6c1e66de0fe33de83d577a","line":1768,"normalized_sql":"INSERT INTO trgfire VALUES ( 11 )","occurrences":[{"line":1768,"offset":64423,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/triggers.sql"},{"line":1784,"offset":65279,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/triggers.sql"}],"offset":64423,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/triggers.sql","splitter":"scanner","sql":"\nINSERT INTO trgfire VALUES (11)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"ef6cfeef7362914f052f57c7","line":2364,"normalized_sql":"CREATE TABLE ataddindex ( id INT , ref_id INT )","occurrences":[{"line":2364,"offset":87570,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_table.sql"},{"line":2371,"offset":87750,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_table.sql"}],"offset":87570,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/alter_table.sql","splitter":"scanner","sql":"\n\nCREATE TABLE ataddindex(id int, ref_id int)"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SET","has_ast":true,"id":"ef6e0e1253c4a671d4228c3e","line":656,"normalized_sql":"SET LOCAL TIME ZONE 'Europe/Paris'","occurrences":[{"line":656,"offset":29242,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/timestamptz.sql"}],"offset":29242,"oracle_node":"PG_QUERY__NODE__NODE_VARIABLE_SET_STMT","parser_status":"OK","parser_stmt_type":"SET","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/timestamptz.sql","splitter":"scanner","sql":"\nSET LOCAL TIME ZONE 'Europe/Paris'"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SET","has_ast":false,"id":"ef6e0e1253c4a671d4228c3e","line":656,"normalized_sql":"SET LOCAL TIME ZONE 'Europe/Paris'","occurrences":[{"line":656,"offset":29242,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/timestamptz.sql"}],"offset":29242,"oracle_node":"PG_QUERY__NODE__NODE_VARIABLE_SET_STMT","parser_status":"ERROR","parser_stmt_type":"SET","remaining":"ZONE 'Europe/Paris'","result":"ERROR","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/timestamptz.sql","splitter":"scanner","sql":"\nSET LOCAL TIME ZONE 'Europe/Paris'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"FETCH","has_ast":true,"id":"ef6f0861b79a7f3950068829","line":80,"normalized_sql":"FETCH BACKWARD ALL IN c5","occurrences":[{"line":80,"offset":2356,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/limit.sql"},{"line":82,"offset":2399,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/limit.sql"}],"offset":2356,"oracle_node":"PG_QUERY__NODE__NODE_FETCH_STMT","parser_status":"OK","parser_stmt_type":"FETCH","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/limit.sql","splitter":"scanner","sql":"\nfetch backward all in c5"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"ef70f3107b23899822852320","line":193,"normalized_sql":"SELECT ( TIMESTAMP WITH TIME ZONE 'today' = ( TIMESTAMP WITH TIME ZONE 'tomorrow' - INTERVAL '1 day' ) ) AS \"True\"","occurrences":[{"line":193,"offset":9911,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/horology.sql"}],"offset":9911,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/horology.sql","splitter":"parser","sql":"SELECT (timestamp with time zone 'today' = (timestamp with time zone 'tomorrow' - interval '1 day')) as \"True\""} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"DROP","has_ast":true,"id":"ef70fb6aff240bb390cb4e82","line":144,"normalized_sql":"DROP FUNCTION trigger_data ( ) CASCADE","occurrences":[{"line":144,"offset":4242,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpython/sql/plpython_trigger.sql"}],"offset":4242,"oracle_node":"PG_QUERY__NODE__NODE_DROP_STMT","parser_status":"OK","parser_stmt_type":"DROP","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plpython/sql/plpython_trigger.sql","splitter":"parser","sql":"DROP FUNCTION trigger_data() CASCADE"} @@ -48988,7 +48988,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"f343adc4306b1840acc82ddb","line":32,"normalized_sql":"SELECT '{-1,3,1}' :: INT [ ] & '{1,2}'","occurrences":[{"line":32,"offset":1200,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/intarray/sql/_int.sql"}],"offset":1200,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/intarray/sql/_int.sql","splitter":"scanner","sql":"\nSELECT '{-1,3,1}'::int[] & '{1,2}'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"TRUNCATE","has_ast":true,"id":"f343c981d41cc8fab5f752e0","line":3105,"normalized_sql":"TRUNCATE tru_ftable , tru_pk_ftable CASCADE","occurrences":[{"line":3105,"offset":128861,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql"}],"offset":128861,"oracle_node":"PG_QUERY__NODE__NODE_TRUNCATE_STMT","parser_status":"OK","parser_stmt_type":"TRUNCATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/postgres_fdw/sql/postgres_fdw.sql","splitter":"scanner","sql":" -- 8\nTRUNCATE tru_ftable, tru_pk_ftable CASCADE"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"CREATE","has_ast":true,"id":"f3443f6912ec1ececc7ca672","line":998,"normalized_sql":"CREATE TABLE test11b AS ( SELECT 1 :: priv_testdomain1 AS a )","occurrences":[{"line":998,"offset":38182,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/privileges.sql"}],"offset":38182,"oracle_node":"PG_QUERY__NODE__NODE_CREATE_TABLE_AS_STMT","parser_status":"OK","parser_stmt_type":"CREATE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/privileges.sql","splitter":"scanner","sql":"\n\nCREATE TABLE test11b AS (SELECT 1::priv_testdomain1 AS a)"} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"f3456f7f77637b07a7bb3fe4","line":12,"normalized_sql":"SELECT * FROM \u8a08\u7b97\u6a5f\u7528\u8a9e WHERE \u5206\u985e\u30b3\u30fc\u30c9 LIKE '_Z01_'","occurrences":[{"line":12,"offset":739,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":739,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"\u8a08\u7b97\u6a5f\u7528\u8a9e where \u5206\u985e\u30b3\u30fc\u30c9 like '_Z01_'","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from \u8a08\u7b97\u6a5f\u7528\u8a9e where \u5206\u985e\u30b3\u30fc\u30c9 like '_Z01_'"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"f3456f7f77637b07a7bb3fe4","line":12,"normalized_sql":"SELECT * FROM \u8a08\u7b97\u6a5f\u7528\u8a9e WHERE \u5206\u985e\u30b3\u30fc\u30c9 LIKE '_Z01_'","occurrences":[{"line":12,"offset":739,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":739,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from \u8a08\u7b97\u6a5f\u7528\u8a9e where \u5206\u985e\u30b3\u30fc\u30c9 like '_Z01_'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"INSERT","has_ast":true,"id":"f346bdf3d39d15def4dc1ff3","line":404,"normalized_sql":"INSERT INTO test_is_json VALUES ( NULL ) , ( '' ) , ( '123' ) , ( '\"aaa \"' ) , ( 'true' ) , ( 'null' ) , ( '[]' ) , ( '[1, \"2\", {}]' ) , ( '{}' ) , ( '{ \"a\": 1, \"b\": null }' ) , ( '{ \"a\": 1, \"a\": null }' ) , ( '{ \"a\": 1, \"b\": [{ \"a\": 1 }, { \"a\": 2 }] }' ) , ( '{ \"a\": 1, \"b\": [{ \"a\": 1, \"b\": 0, \"a\": 2 }] }' ) , ( 'aaa' ) , ( '{a:1}' ) , ( '[\"a\",]' )","occurrences":[{"line":404,"offset":14665,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/sqljson.sql"}],"offset":14665,"oracle_node":"PG_QUERY__NODE__NODE_INSERT_STMT","parser_status":"OK","parser_stmt_type":"INSERT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/sqljson.sql","splitter":"scanner","sql":"\n\nINSERT INTO test_is_json VALUES\n (NULL),\n (''),\n ('123'),\n ('\"aaa \"'),\n ('true'),\n ('null'),\n ('[]'),\n ('[1, \"2\", {}]'),\n ('{}'),\n ('{ \"a\": 1, \"b\": null }'),\n ('{ \"a\": 1, \"a\": null }'),\n ('{ \"a\": 1, \"b\": [{ \"a\": 1 }, { \"a\": 2 }] }'),\n ('{ \"a\": 1, \"b\": [{ \"a\": 1, \"b\": 0, \"a\": 2 }] }'),\n ('aaa'),\n ('{a:1}'),\n ('[\"a\",]')"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"f347f141874194107a2b9b37","line":277,"normalized_sql":"SELECT '{1,null,3}' :: INT [ ]","occurrences":[{"line":277,"offset":8779,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/arrays.sql"}],"offset":8779,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/arrays.sql","splitter":"scanner","sql":"\n\n-- with nulls\nSELECT '{1,null,3}'::int[]"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"COMMENT","has_ast":true,"id":"f34a31f8c69b1487b80bcb5b","line":81,"normalized_sql":"COMMENT ON FUNCTION cube_ge ( CUBE , CUBE ) IS 'greater than or equal to'","occurrences":[{"line":81,"offset":1992,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/cube/cube--1.2.sql"}],"offset":1992,"oracle_node":"PG_QUERY__NODE__NODE_COMMENT_STMT","parser_status":"OK","parser_stmt_type":"COMMENT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/cube/cube--1.2.sql","splitter":"scanner","sql":"\n\nCOMMENT ON FUNCTION cube_ge(cube, cube) IS 'greater than or equal to'"} @@ -50348,7 +50348,7 @@ {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"fa789501e961dccb4d122826","line":188,"normalized_sql":"ALTER TABLE tenk1 SET ( parallel_workers = 0 )","occurrences":[{"line":188,"offset":6664,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/select_parallel.sql"}],"offset":6664,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_TABLE_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/select_parallel.sql","splitter":"scanner","sql":"\nalter table tenk1 set (parallel_workers = 0)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"REINDEX","has_ast":true,"id":"fa78e492534264ed20b04c72","line":28,"normalized_sql":"REINDEX TABLE pg_index","occurrences":[{"line":28,"offset":1168,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/reindex_catalog.sql"}],"offset":1168,"oracle_node":"PG_QUERY__NODE__NODE_REINDEX_STMT","parser_status":"OK","parser_stmt_type":"REINDEX","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/reindex_catalog.sql","splitter":"parser","sql":"REINDEX TABLE pg_index"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"fa7a7cc733403950e89036cd","line":425,"normalized_sql":"SELECT perl_spi_prepared_bad ( 4.35 ) AS \"double precision\"","occurrences":[{"line":425,"offset":10949,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plperl/sql/plperl.sql"}],"offset":10949,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/pl/plperl/sql/plperl.sql","splitter":"parser","sql":"SELECT perl_spi_prepared_bad(4.35) as \"double precision\""} -{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"fa7c7d692b7dd19ceddcaaec","line":10,"normalized_sql":"SELECT * FROM \u8a08\u7b97\u6a5f\u7528\u8a9e WHERE \u5206\u985e\u30b3\u30fc\u30c9 = '\u4ebaZ01\u4e0b'","occurrences":[{"line":10,"offset":604,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":604,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"\u8a08\u7b97\u6a5f\u7528\u8a9e where \u5206\u985e\u30b3\u30fc\u30c9 = '\u4ebaZ01\u4e0b'","result":"TRAILING_INPUT","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from \u8a08\u7b97\u6a5f\u7528\u8a9e where \u5206\u985e\u30b3\u30fc\u30c9 = '\u4ebaZ01\u4e0b'"} +{"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"fa7c7d692b7dd19ceddcaaec","line":10,"normalized_sql":"SELECT * FROM \u8a08\u7b97\u6a5f\u7528\u8a9e WHERE \u5206\u985e\u30b3\u30fc\u30c9 = '\u4ebaZ01\u4e0b'","occurrences":[{"line":10,"offset":604,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql"}],"offset":604,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/mb/sql/utf8.sql","splitter":"parser","sql":"select * from \u8a08\u7b97\u6a5f\u7528\u8a9e where \u5206\u985e\u30b3\u30fc\u30c9 = '\u4ebaZ01\u4e0b'"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"SELECT","has_ast":true,"id":"fa805e0089d1b54628c9a00c","line":102,"normalized_sql":"SELECT numrange ( 0.1 , 10.1 ) <@ numrange ( 1.1 , 3.3 )","occurrences":[{"line":102,"offset":3818,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/rangetypes.sql"}],"offset":3818,"oracle_node":"PG_QUERY__NODE__NODE_SELECT_STMT","parser_status":"OK","parser_stmt_type":"SELECT","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/rangetypes.sql","splitter":"parser","sql":"select numrange(0.1, 10.1) <@ numrange(1.1,3.3)"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"MERGE","has_ast":true,"id":"fa835f0148fbefa1e7d6f780","line":867,"normalized_sql":"MERGE INTO DOCUMENT d USING ( SELECT 3 AS sdid ) s ON did = s . sdid WHEN MATCHED THEN DELETE","occurrences":[{"line":867,"offset":33457,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/rowsecurity.sql"}],"offset":33457,"oracle_node":"PG_QUERY__NODE__NODE_MERGE_STMT","parser_status":"OK","parser_stmt_type":"MERGE","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/src/test/regress/sql/rowsecurity.sql","splitter":"scanner","sql":"\n\n-- The same thing with DELETE action, but fails again because no permissions\n-- to delete items in 'science fiction' category that did 3 belongs to.\nMERGE INTO document d\nUSING (SELECT 3 as sdid) s\nON did = s.sdid\nWHEN MATCHED THEN\n\tDELETE"} {"branch":"18-latest","commit":"9ab9951b7021adcc6d25d261d5016ca0b83726b8","expected_stmt_type":"ALTER","has_ast":true,"id":"fa842c544ba01451ae8c28bf","line":81,"normalized_sql":"ALTER FUNCTION g_int_picksplit ( internal , internal ) PARALLEL SAFE","occurrences":[{"line":81,"offset":4493,"source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/intarray/intarray--1.1--1.2.sql"}],"offset":4493,"oracle_node":"PG_QUERY__NODE__NODE_ALTER_FUNCTION_STMT","parser_status":"OK","parser_stmt_type":"ALTER","remaining":"","result":"DEEP_SUPPORTED","source_file":"/tmp/parsersql-coverage/postgresql/postgresql-18.4/contrib/intarray/intarray--1.1--1.2.sql","splitter":"scanner","sql":"\nALTER FUNCTION g_int_picksplit(internal, internal) PARALLEL SAFE"} diff --git a/tests/test_emitter.cpp b/tests/test_emitter.cpp index 770c68b..799515d 100644 --- a/tests/test_emitter.cpp +++ b/tests/test_emitter.cpp @@ -381,3 +381,15 @@ TEST(PgSQLEmitterTest, SelectBasic) { std::string out(result.ptr, result.len); EXPECT_EQ(out, "SELECT * FROM users WHERE id = 1"); } + +TEST_F(MySQLEmitterTest, PreservesMySqlNullSafeEqualityAndLogicalAnd) { + EXPECT_EQ(round_trip("SELECT a <=> b FROM t"), "SELECT a <=> b FROM t"); + EXPECT_EQ(round_trip("SELECT a && b FROM t"), "SELECT a && b FROM t"); + EXPECT_EQ(round_trip("SELECT a && b = c FROM t"), "SELECT a && b = c FROM t"); +} + +TEST_F(MySQLEmitterTest, PreservesMySqlSelectModifiers) { + EXPECT_EQ(round_trip("SELECT high_priority SQL_NO_CACHE a FROM t"), + "SELECT high_priority SQL_NO_CACHE a FROM t"); + EXPECT_EQ(round_trip("SELECT `SQL_NO_CACHE` FROM t"), "SELECT `SQL_NO_CACHE` FROM t"); +} diff --git a/tests/test_expression.cpp b/tests/test_expression.cpp index 9d825f0..fc176f8 100644 --- a/tests/test_expression.cpp +++ b/tests/test_expression.cpp @@ -457,3 +457,15 @@ TEST_F(ExpressionTest, ZeroArgFunction) { EXPECT_EQ(node->type, NodeType::NODE_FUNCTION_CALL); EXPECT_EQ(node->first_child, nullptr); // no args } + +TEST_F(ExpressionTest, MySqlLogicalAndAndNullSafeEqualityPrecedence) { + AstNode* node = parse_expr("a && b <=> c"); + ASSERT_NE(node, nullptr); + ASSERT_EQ(node->type, NodeType::NODE_BINARY_OP); + EXPECT_EQ(std::string(node->value_ptr, node->value_len), "&&"); + ASSERT_NE(node->first_child, nullptr); + AstNode* right = node->first_child->next_sibling; + ASSERT_NE(right, nullptr); + ASSERT_EQ(right->type, NodeType::NODE_BINARY_OP); + EXPECT_EQ(std::string(right->value_ptr, right->value_len), "<=>"); +} diff --git a/tests/test_parse_all.cpp b/tests/test_parse_all.cpp index e43a762..bdad8af 100644 --- a/tests/test_parse_all.cpp +++ b/tests/test_parse_all.cpp @@ -65,3 +65,73 @@ TEST(ParseAll, UnknownStatementsDoNotMakeSuccessfulBatch) { EXPECT_FALSE(batch.ok()); EXPECT_EQ(batch.statements[1].result.stmt_type, StmtType::UNKNOWN); } + +TEST(ParseAll, ExecutableCommentProvenanceIsPerStatementEvenOnErrors) { + Parser parser; + std::string sql = "/*! lead */ SELECT 1; SELECT 2 /*M! + 1 */; SELECT 3; SELECT ) /*! trailing */; SELECT 4"; + auto batch = parser.parse_all(sql.data(), sql.size()); + ASSERT_EQ(batch.statements.size(), 5u); + EXPECT_TRUE(batch.statements[0].result.has_executable_comments); + EXPECT_TRUE(batch.statements[1].result.has_executable_comments); + EXPECT_FALSE(batch.statements[2].result.has_executable_comments); + EXPECT_TRUE(batch.statements[3].result.has_executable_comments); + EXPECT_FALSE(batch.statements[4].result.has_executable_comments); +} + +TEST(ParseAll, SingleParseExecutableCommentProvenanceIncludesRemainder) { + Parser parser; + for (const std::string sql : {"/*! lead */ SELECT 1", "SELECT 1 /*! + 1 */", "SELECT ) /*! trailing */", "SELECT 1 /*! @x */"}) { + EXPECT_TRUE(parser.parse(sql.data(), sql.size()).has_executable_comments) << sql; + } + for (const std::string sql : {"SELECT '/*! x */', `/*M! x */`", "SELECT 1 /* ordinary */"}) { + EXPECT_FALSE(parser.parse(sql.data(), sql.size()).has_executable_comments) << sql; + } + Parser pg; + std::string sql = "SELECT 1 /* outer /*! nested */ end */"; + EXPECT_FALSE(pg.parse(sql.data(), sql.size()).has_executable_comments); +} + +TEST(ParseAll, ExecutableCommentProvenanceSurvivesLexicalError) { + Parser parser; + std::string sql = "SELECT 1 /*! @x */; SELECT 2; SELECT 3 /*M! unterminated"; + auto batch = parser.parse_all(sql.data(), sql.size()); + ASSERT_EQ(batch.statements.size(), 3u); + EXPECT_EQ(batch.statements[0].result.status, ParseResult::ERROR); + EXPECT_TRUE(batch.statements[0].result.has_executable_comments); + EXPECT_FALSE(batch.statements[1].result.has_executable_comments); + EXPECT_EQ(batch.statements[2].result.status, ParseResult::ERROR); + EXPECT_TRUE(batch.statements[2].result.has_executable_comments); +} + +TEST(ParseAll, ExecutableCommentOnlyFragmentsAreReported) { + Parser parser; + for (const std::string comment : {"/*! SELECT ? */", "/*M! SELECT ? */", "/*! SET @a=1 */", "/*M! SET @a=1 */"}) { + for (const std::string sql : {comment, comment + "; SELECT 1", "SELECT 1; " + comment}) { + auto batch = parser.parse_all(sql.data(), sql.size()); + const bool leading_statement = sql.compare(0, 6, "SELECT") == 0; + const size_t index = leading_statement ? 1 : 0; + ASSERT_EQ(batch.statements.size(), sql == comment ? 1u : 2u) << sql; + EXPECT_FALSE(batch.ok()) << sql; + const auto& fragment = batch.statements[index]; + EXPECT_EQ(fragment.result.status, ParseResult::ERROR) << sql; + EXPECT_TRUE(fragment.result.has_executable_comments) << sql; + EXPECT_EQ(fragment.source.ptr, sql.data() + fragment.offset); + const std::string source(fragment.source.ptr, fragment.source.len); + EXPECT_EQ(fragment.offset, leading_statement ? 9u : 0u) << sql; + EXPECT_EQ(source, leading_statement ? " " + comment : + (sql == comment ? comment : comment + ";")) << sql; + EXPECT_EQ(fragment.result.has_user_variables, comment.find('@') != std::string::npos) << sql; + if (batch.statements.size() == 2) + EXPECT_FALSE(batch.statements[1 - index].result.has_executable_comments) << sql; + } + } +} + +TEST(ParseAll, OrdinaryCommentOnlyFragmentsRemainIgnored) { + Parser parser; + const std::string sql = "/* ordinary */; SELECT 1; /* trailing */"; + auto batch = parser.parse_all(sql.data(), sql.size()); + ASSERT_EQ(batch.statements.size(), 1u); + EXPECT_TRUE(batch.ok()); + EXPECT_FALSE(batch.statements[0].result.has_executable_comments); +} diff --git a/tests/test_select.cpp b/tests/test_select.cpp index 4df7a51..9bef0a1 100644 --- a/tests/test_select.cpp +++ b/tests/test_select.cpp @@ -460,3 +460,226 @@ TEST_F(PgSQLSelectTest, ForUpdate) { auto r = parser.parse("SELECT * FROM users FOR UPDATE", 30); EXPECT_EQ(r.status, ParseResult::OK); } + +TEST_F(MySQLSelectTest, MySqlModifiersAreExplicitOptionsWithOriginalSpelling) { + for (const std::string option : {"high_priority", "SQL_NO_CACHE", "SQL_CACHE", "SQL_SMALL_RESULT", "SQL_BIG_RESULT", "SQL_BUFFER_RESULT", "STRAIGHT_JOIN", "DISTINCTROW"}) { + const std::string sql = "SELECT " + option + " a FROM t"; + auto r = parser.parse(sql.data(), sql.size()); + ASSERT_EQ(r.status, ParseResult::OK) << sql; + ASSERT_TRUE(r.full_input) << sql; + ASSERT_NE(r.ast, nullptr); + const auto* opts = find_child(r.ast, NodeType::NODE_SELECT_OPTIONS); + ASSERT_NE(opts, nullptr) << sql; + ASSERT_NE(opts->first_child, nullptr); + EXPECT_EQ(std::string(opts->first_child->value().ptr, opts->first_child->value().len), option); + const auto* items = find_child(r.ast, NodeType::NODE_SELECT_ITEM_LIST); + ASSERT_NE(items, nullptr); + ASSERT_NE(items->first_child, nullptr); + EXPECT_EQ(find_child(items->first_child, NodeType::NODE_ALIAS), nullptr) << sql; + } +} + +TEST_F(MySQLSelectTest, QuotedMySqlModifierNamesRemainColumns) { + for (const std::string option : {"HIGH_PRIORITY", "SQL_NO_CACHE", "SQL_CACHE", "SQL_SMALL_RESULT", "SQL_BIG_RESULT", "SQL_BUFFER_RESULT", "STRAIGHT_JOIN", "DISTINCTROW"}) { + const std::string sql = "SELECT `" + option + "` FROM t"; + auto r = parser.parse(sql.data(), sql.size()); + ASSERT_EQ(r.status, ParseResult::OK) << sql; + ASSERT_TRUE(r.full_input) << sql; + ASSERT_NE(r.ast, nullptr); + EXPECT_EQ(find_child(r.ast, NodeType::NODE_SELECT_OPTIONS), nullptr) << sql; + const auto* items = find_child(r.ast, NodeType::NODE_SELECT_ITEM_LIST); + ASSERT_NE(items, nullptr); + ASSERT_NE(items->first_child, nullptr); + ASSERT_NE(items->first_child->first_child, nullptr); + EXPECT_EQ(std::string(items->first_child->first_child->value().ptr, + items->first_child->first_child->value().len), option); + } +} + +TEST_F(MySQLSelectTest, UnsupportedMySqlTypedLiteralsAndBinaryExpressionsAreNotComplete) { + for (const std::string expr : {"DATE '2020-01-01'", "TIME '12:34:56'", "TIMESTAMP '2020-01-01 12:34:56'", "N'hello'", "BINARY 'hello'", "BINARY col", "BINARY(col)", "BINARY CURRENT_DATE", "BINARY @x"}) { + for (const std::string sql : {"SELECT " + expr, "SELECT 1 FROM t WHERE a = " + expr}) { + auto r = parser.parse(sql.data(), sql.size()); + EXPECT_EQ(r.stmt_type, StmtType::SELECT) << sql; + EXPECT_FALSE(r.ok() && r.full_input) << sql; + } + } +} + +TEST_F(MySQLSelectTest, TypedLiteralRefusalPreservesValidColumnsFunctionsAndAliases) { + for (const std::string sql : {"SELECT `DATE` 'label' FROM t", "SELECT `TIME` 'label' FROM t", "SELECT `TIMESTAMP` 'label' FROM t", "SELECT `BINARY` 'label' FROM t", "SELECT `N` 'label' FROM t", "SELECT N 'label' FROM t", "SELECT date_col AS 'date' FROM t", "SELECT DATE AS 'date' FROM t", "SELECT DATE('2020-01-01'), TIME('12:34:56'), TIMESTAMP('2020-01-01')", "SELECT date_col, time_col, timestamp_col, binary_col FROM t"}) { + auto r = parser.parse(sql.data(), sql.size()); + EXPECT_EQ(r.status, ParseResult::OK) << sql; + EXPECT_TRUE(r.full_input) << sql; + } +} + +TEST_F(MySQLSelectTest, SelectItemExpressionSource) { + const char* sql = "SELECT /*lead*/ 1, (1 + 2) AS `x`, COUNT( * ) c, t.col /*end*/ FROM t"; + auto r = parser.parse(sql, strlen(sql)); + ASSERT_TRUE(r.ok()); + ASSERT_TRUE(r.has_comments); + auto* items = find_child(r.ast, NodeType::NODE_SELECT_ITEM_LIST); + ASSERT_NE(items, nullptr); + const char* expected[] = {"1", "(1 + 2)", "COUNT( * )", "t.col"}; + auto* item = items->first_child; + for (auto value : expected) { + ASSERT_NE(item, nullptr); + EXPECT_EQ(std::string(item->source().ptr, item->source().len), value); + item = item->next_sibling; + } + EXPECT_EQ(item, nullptr); +} + +TEST_F(MySQLSelectTest, BatchCommentsAndSource) { + const char* sql = "SELECT 1; /*lead*/ SELECT (2 + 3) x; SELECT '/*no*/'"; + auto batch = parser.parse_all(sql, strlen(sql)); + ASSERT_EQ(batch.statements.size(), 3u); + EXPECT_FALSE(batch.statements[0].result.has_comments); + EXPECT_TRUE(batch.statements[1].result.has_comments); + EXPECT_FALSE(batch.statements[2].result.has_comments); + auto* items = find_child(batch.statements[1].result.ast, NodeType::NODE_SELECT_ITEM_LIST); + ASSERT_NE(items, nullptr); + auto span = items->first_child->source(); + EXPECT_EQ(std::string(span.ptr, span.len), "(2 + 3)"); + EXPECT_EQ(span.ptr, strstr(sql, "(2 + 3)")); +} + +TEST_F(MySQLSelectTest, NestedSelectItemSources) { + const char* sql = "SELECT (SELECT f( 1 )) AS `nested`, 1 /*inside*/ + 2 /*tail*/"; + auto r = parser.parse(sql, strlen(sql)); + ASSERT_TRUE(r.ok()); + auto* outer = find_child(r.ast, NodeType::NODE_SELECT_ITEM_LIST); + ASSERT_NE(outer, nullptr); + auto* first = outer->first_child; + ASSERT_NE(first, nullptr); + EXPECT_EQ(std::string(first->source().ptr, first->source().len), "(SELECT f( 1 ))"); + auto* second = first->next_sibling; + ASSERT_NE(second, nullptr); + EXPECT_EQ(std::string(second->source().ptr, second->source().len), "1 /*inside*/ + 2"); + const AstNode* inner = nullptr; + auto search = [&](auto&& self, const AstNode* n) -> void { + if (n->type == NodeType::NODE_SELECT_ITEM && n != first && n != second) inner = n; + for (auto* c = n->first_child; c; c = c->next_sibling) self(self, c); + }; + search(search, first); + ASSERT_NE(inner, nullptr); + EXPECT_EQ(std::string(inner->source().ptr, inner->source().len), "f( 1 )"); +} + +TEST_F(MySQLSelectTest, CommentsMetadataOnErrorsAndHints) { + for (const char* sql : {"SELECT /*+ BKA(t) */ 1", "SELECT 1 /*!50000 + 2 */", "SELECT 1 /* unterminated"}) { + auto r = parser.parse(sql, strlen(sql)); + EXPECT_TRUE(r.has_comments) << sql; + auto batch = parser.parse_all(sql, strlen(sql)); + ASSERT_EQ(batch.statements.size(), 1u); + EXPECT_TRUE(batch.statements[0].result.has_comments) << sql; + } + const char* quoted = "SELECT '/* no */', `-- no`"; + EXPECT_FALSE(parser.parse(quoted, strlen(quoted)).has_comments); +} + +TEST(PostgreSQLSelectProvenance, CommentsAndQuotedControls) { + Parser parser; + const char* commented = "SELECT 1 /* outer /* inner */ end */"; + EXPECT_TRUE(parser.parse(commented, strlen(commented)).has_comments); + auto batch = parser.parse_all(commented, strlen(commented)); + ASSERT_EQ(batch.statements.size(), 1u); + EXPECT_TRUE(batch.statements[0].result.has_comments); + const char* quoted = "SELECT '/* no */', \"-- no\""; + EXPECT_FALSE(parser.parse(quoted, strlen(quoted)).has_comments); +} + +TEST(MySQLSelectDepth, BoundsRecursiveExpressionsAndSubqueries) { + for (const std::string kind : {"paren", "not", "function", "select"}) { + for (int depth : {16, 512}) { + std::string sql = "SELECT "; + for (int i = 0; i < depth; ++i) { + if (kind == "paren") sql += "("; + else if (kind == "not") sql += "NOT "; + else if (kind == "function") sql += "ABS("; + else sql += "(SELECT "; + } + sql += "1"; + if (kind != "not") sql.append(depth, ')'); + Parser parser; + auto result = parser.parse(sql.data(), sql.size()); + if (depth == 16) EXPECT_TRUE(result.ok() && result.full_input) << kind; + else EXPECT_EQ(result.status, ParseResult::ERROR) << kind; + auto next = parser.parse("SELECT 1", 8); + EXPECT_TRUE(next.ok() && next.full_input) << kind; + } + } +} + +TEST(MySQLSelectDepth, ConfigBatchAndFlatLists) { + ParserConfig config; + config.max_parse_depth = 8; + Parser parser(config); + const std::string nested = "SELECT " + std::string(16, '(') + "1" + std::string(16, ')'); + auto rejected = parser.parse(nested.data(), nested.size()); + EXPECT_EQ(rejected.status, ParseResult::ERROR); + EXPECT_FALSE(rejected.full_input); + EXPECT_EQ(std::string(rejected.error.message.ptr, rejected.error.message.len), + "SQL parse depth limit exceeded"); + const std::string batch_sql = nested + "; SELECT 1"; + auto batch = parser.parse_all(batch_sql.data(), batch_sql.size()); + ASSERT_EQ(batch.statements.size(), 2u); + EXPECT_EQ(batch.statements[0].result.status, ParseResult::ERROR); + EXPECT_FALSE(batch.statements[0].result.full_input); + EXPECT_TRUE(batch.statements[1].result.ok()); + EXPECT_TRUE(batch.statements[1].result.full_input); + std::string flat = "SELECT 1"; + for (int i = 0; i < 200; ++i) flat += ", 1"; + auto result = parser.parse(flat.data(), flat.size()); + EXPECT_TRUE(result.ok() && result.full_input); + auto control = parser.parse("SELECT ((1 + 2))", 16); + EXPECT_TRUE(control.ok() && control.full_input); +} + +TEST(PostgreSQLSelectDepth, BoundsRecursiveExpressionsAndSubqueries) { + for (const std::string kind : {"paren", "not", "function", "select"}) { + for (int depth : {16, 512}) { + std::string sql = "SELECT "; + for (int i = 0; i < depth; ++i) { + if (kind == "paren") sql += "("; + else if (kind == "not") sql += "NOT "; + else if (kind == "function") sql += "ABS("; + else sql += "(SELECT "; + } + sql += "1"; + if (kind != "not") sql.append(depth, ')'); + Parser parser; + auto result = parser.parse(sql.data(), sql.size()); + if (depth == 16) EXPECT_TRUE(result.ok() && result.full_input) << kind; + else { + EXPECT_EQ(result.status, ParseResult::ERROR) << kind; + EXPECT_FALSE(result.full_input) << kind; + } + auto next = parser.parse("SELECT 1", 8); + EXPECT_TRUE(next.ok() && next.full_input) << kind; + } + } +} + +TEST(MySQLSelectDepth, ConfigurationBoundaries) { + const std::string nested = "SELECT " + std::string(256, '(') + "1" + std::string(256, ')'); + ParserConfig config; + config.max_parse_depth = 100000; + Parser capped(config); + auto result = capped.parse(nested.data(), nested.size()); + EXPECT_EQ(result.status, ParseResult::ERROR); + EXPECT_FALSE(result.full_input); + config.max_parse_depth = 0; + Parser zero(config); + result = zero.parse("SELECT 1", 8); + EXPECT_EQ(result.status, ParseResult::ERROR); + EXPECT_FALSE(result.full_input); + config.max_parse_depth = 4; + Parser lower(config); + result = lower.parse("SELECT 1", 8); + EXPECT_TRUE(result.ok() && result.full_input); + result = lower.parse(nested.data(), nested.size()); + EXPECT_EQ(result.status, ParseResult::ERROR); + EXPECT_FALSE(result.full_input); +} diff --git a/tests/test_tokenizer.cpp b/tests/test_tokenizer.cpp index bd2100e..612c366 100644 --- a/tests/test_tokenizer.cpp +++ b/tests/test_tokenizer.cpp @@ -353,3 +353,62 @@ TEST_F(PgSQLTokenizerTest, NoHashComment) { tok.reset(sql, strlen(sql)); EXPECT_EQ(tok.next_token().type, TokenType::TK_PG_OPERATOR); } + +// ProxySQL #6630: UTF-8 identifiers must be single tokens, including when +// adjacent ASCII bytes spell a SQL operation. +template +static void check_utf8_identifiers() { + for (const char* sql : {"café", "日本語", "éDROP", "starté", "a😀z"}) { + Tokenizer lexer; + lexer.reset(sql, strlen(sql)); + Token token = lexer.next_token(); + EXPECT_EQ(token.type, TokenType::TK_IDENTIFIER) << sql; + EXPECT_EQ(std::string(token.text.ptr, token.text.len), sql); + EXPECT_EQ(lexer.next_token().type, TokenType::TK_EOF); + EXPECT_FALSE(lexer.has_error()); + } + for (const char* sql : {"\x80", "\xc0\xaf", "\xed\xa0\x80", "\xf4\x90\x80\x80", "a\xe2\x82"}) { + Tokenizer lexer; + lexer.reset(sql, strlen(sql)); + EXPECT_EQ(lexer.next_token().type, TokenType::TK_ERROR); + EXPECT_TRUE(lexer.has_error()); + } +} +TEST_F(MySQLTokenizerTest, Utf8Identifiers) { check_utf8_identifiers(); } +TEST_F(PgSQLTokenizerTest, Utf8Identifiers) { check_utf8_identifiers(); } + +TEST_F(MySQLTokenizerTest, ExecutableCommentProvenanceAndReset) { + for (const std::string sql : {"/*!40101 SELECT 1 */ SELECT 1", "SELECT 1 /*M! + 1 */"}) { + tok.reset(sql.data(), sql.size()); + while (tok.next_token().type != TokenType::TK_EOF) {} + EXPECT_TRUE(tok.has_executable_comments()) << sql; + } + for (const std::string sql : {"SELECT '/*! x */', `/*M! x */`", "SELECT 1 /* ordinary */"}) { + tok.reset(sql.data(), sql.size()); + while (tok.next_token().type != TokenType::TK_EOF) {} + EXPECT_FALSE(tok.has_executable_comments()) << sql; + } + Tokenizer pg; + const std::string sql = "SELECT 1 /* outer /*! nested */ end */"; + pg.reset(sql.data(), sql.size()); + while (pg.next_token().type != TokenType::TK_EOF) {} + EXPECT_FALSE(pg.has_executable_comments()); +} + +TEST_F(MySQLTokenizerTest, ConsumedEndAndCommentTracking) { + const char* sql = " 1 /*c*/ + 2"; + tok.reset(sql, strlen(sql)); + EXPECT_EQ(tok.consumed_token_end(), sql); + tok.peek(); + EXPECT_EQ(tok.consumed_token_end(), sql); + tok.skip(); + EXPECT_EQ(tok.consumed_token_end(), sql + 3); + tok.peek(); + EXPECT_EQ(tok.consumed_token_end(), sql + 3); + EXPECT_TRUE(tok.has_comments()); + tok.next_token(); + EXPECT_EQ(tok.consumed_token_end(), strstr(sql, "+") + 1); + tok.reset(sql, strlen(sql)); + EXPECT_EQ(tok.consumed_token_end(), sql); + EXPECT_FALSE(tok.has_comments()); +}