builtins: implement parse_ident function#93300
Conversation
ZhouXing19
left a comment
There was a problem hiding this comment.
Reviewable status:
complete! 1 of 0 LGTMs obtained (waiting on @rafiss)
pkg/sql/sem/builtins/parse_ident_builtin_test.go line 1 at r1 (raw file):
// Copyright 2022 The Cockroach Authors.
Just curious why not include these tests in the data-driven logic test as well.
rafiss
left a comment
There was a problem hiding this comment.
tftr!
bors r=ZhouXing19
Reviewable status:
complete! 1 of 0 LGTMs obtained (waiting on @ZhouXing19)
pkg/sql/sem/builtins/parse_ident_builtin_test.go line 1 at r1 (raw file):
Previously, ZhouXing19 (Jane Xing) wrote…
Just curious why not include these tests in the data-driven logic test as well.
this is just a guess, but i don't think we really need to license any of our testing code. i think the .go test files just have them because our linter checks all .go files
|
Build failed (retrying...): |
bors r- |
|
Canceled. |
The implementation was adapted from the Postgres one. Release note (sql change): Implemented the parse_ident builtin. The function splits a qualified identifier into an array of identifiers, removing any quoting of individual identifiers. By default, extra characters after the last identifier are considered an error; but if the second parameter is false, then such extra characters are ignored.
|
bors r=ZhouXing19 |
|
Build succeeded: |
|
Encountered an error creating backports. Some common things that can go wrong:
You might need to create your backport manually using the backport tool. error creating merge commit from 5386a66 to blathers/backport-release-22.2-93300: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict [] you may need to manually resolve merge conflicts with the backport tool. Backport to branch 22.2.x failed. See errors above. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan. |
fixes #93159
The implementation was adapted from the Postgres one.
Release note (sql change): Implemented the parse_ident builtin. The function splits a qualified identifier into an array of identifiers, removing any quoting of individual identifiers. By default, extra characters after the last identifier are considered an error; but if the second parameter is false, then such extra characters are ignored.