Commit ebd79a1
feat(cubesql): Improve DataGrip compatibility (cube-js#9825)
List of changes:
- Parse explicit `DISTINCT` option with set operators (e.g. `UNION DISTINCT`)
- `array_agg` function can now be prefixed with `pg_catalog.`
- New introspection tables are supported:
- `pg_auth_members`
- `pg_available_extension_versions`
- `pg_cast`
- `pg_event_trigger`
- `pg_foreign_data_wrapper`
- `pg_foreign_server`
- `pg_foreign_table`
- `pg_language`
- `pg_locks`
- `pg_operator`
- `pg_rewrite`
- `pg_tablespace`
- `pg_timezone_abbrevs`
- `pg_timezone_names`
- `pg_user_mapping`
- New introspection functions are supported:
- `pg_is_in_recovery`
- `pg_postmaster_start_time`
- `pg_tablespace_location`
- `txid_current`
- System field `xmin` added to the following introspection tables:
- `pg_am`
- `pg_attribute`
- `pg_class`
- `pg_constraint`
- `pg_description`
- `pg_extension`
- `pg_index`
- `pg_namespace`
- `pg_proc`
- `pg_type`
- `pg_namespace`'s `nspacl` field now has correct type (`List(Utf8)`)
- `AGE` function now accepts values of type `xid`
- `"char"` casts are being replaced with `text` casts
- `xid` casts are being replaced with `unsigned int` casts
- New `PgType`s added:
- `[ARRAY]PGAM`
- `[ARRAY]PGCAST`
- `[ARRAY]PGEVENTTRIGGER`
- `[ARRAY]PGEXTENSION`
- `[ARRAY]PGFOREIGNDATAWRAPPER`
- `[ARRAY]PGFOREIGNSERVER`
- `[ARRAY]PGLANGUAGE`
- `CTID` system field is replaced with `NULL` in data queries
Signed-off-by: Alex Qyoun-ae <[email protected]>1 parent bd21c32 commit ebd79a1
File tree
80 files changed
+3589
-456
lines changed- packages/cubejs-backend-native
- rust
- cubenativeutils
- cubesqlplanner
- cubesql
- cubesql
- e2e/tests/snapshots
- src
- compile
- engine
- information_schema/postgres
- udf
- snapshots
- test
- snapshots
- sql
- pg-srv/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
80 files changed
+3589
-456
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| 38 | + | |
39 | 39 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
| 35 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| 37 | + | |
Lines changed: 67 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | | - | |
29 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
138 | 143 | | |
139 | 144 | | |
140 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
141 | 176 | | |
142 | 177 | | |
143 | 178 | | |
| |||
404 | 439 | | |
405 | 440 | | |
406 | 441 | | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
407 | 467 | | |
408 | 468 | | |
409 | 469 | | |
| |||
0 commit comments