-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql: NULL geography concatenation is inconsistent with Postgres #79846
Comments
i wonder if this is just a display difference with non-postgres defined types.
|
TIL about
spooky:
|
seems like there's to changes to make here:
|
@otan I can start looking at it. Please assign it to me. |
@otan I have the PR underway but I am unsure of the changes that must happen for the pgCatalogTypeTable. Could you please elaborate I am new to the code base? |
Thanks for looking @surahman ! i've added some comments in #82304 (comment) |
82304: [CRDB-15892] SQL: NULL geography concatenation is inconsistent with Postgres r=otan a=surahman Github Issue [#79846](#79846) JIRA ticket [CRDB-15892](https://cockroachlabs.atlassian.net/browse/CRDB-15892) - [x] `Delimiter` in `sql/types/`: `Box2D` `;` , for `Geometry` and Geography` `:`, and for everything else `,` - [x] Change the delimiter for `Format` for [`DArray`](https://github.com/cockroachdb/cockroach/blob/b9a675266303528d71b388ac35dfb87f145cc7a8/pkg/sql/sem/tree/datum.go#L4414) - [x] Change `pg_type` table to return the correct `typdelim` in [`pgCatalogTypeTable`](https://github.com/cockroachdb/cockroach/blob/4c32814a93a9447abcc12c168a3a45a865cd3785/pkg/sql/pg_catalog.go#L2938) - [ ] Add the relevant logic tests. - [ ] Fix broken tests in `TestRandParseDatumStringAs` and `TestAvroSchema`. - [ ] Add [test](https://github.com/cockroachdb/cockroach/blob/1a707a1/pkg/sql/logictest/testdata/logic_test/geospatial) for concatenating array components together. `@otan` Co-authored-by: Saad Ur Rahman <[email protected]>
From #67791 (comment):
In Postgres 14.2:
In CRDB 21.2.7:
Jira issue: CRDB-15892
The text was updated successfully, but these errors were encountered: