-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Revert "Preserve case for RowType's field name and JSON content when CAST
"
#22604
Conversation
…``CAST``" This reverts commit 5b7cda2.
Codenotify: Notifying subscribers in CODENOTIFY files for diff 369f9d3...d20c599.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CC: @tdcmeehan
@hantangwangd Can you please cover the relevant logic (in the PR description) under a flag as well so that legacy behavior can be supported? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! (doc)
Pulled the branch and reviewed docs changes in a local docs build.
@neeradsomanchi Sure. By the way, is this all the problems caused by the change? And could you provide some examples of the failed cases, so that I can add them to test cases for legacy behavior. |
@neeradsomanchi After recheck the code, I found it a little complex to cover the code in
If so, I think we should figure out firstly whether it is a incorrect behavior that need to be fixed even in legacy semantics. Any detailed messages would be appreciated! |
@hantangwangd, I checked the failures, and they were really user errors (seemed like typos) that we should have been failing all along. It was something like Failing is the right thing to do here, and there isn't really a reasonable use case where users would use the old behavior on purpose, so it's fine if a few queries fail after this and users need to fix them. This should be good to add back as it was, but with a release note noting this fix. |
@rschlussel, thank you very much for the checking on failed user cases and the detailed informations. And so glad to know that this change do not affect normal existing user cases. So, to add back this change, should we resubmit a PR the same as #21869 or revert the revert PR #22604? Which one do you think is the better way? |
either is fine. |
Reverts 5b7cda2
Description
This reverts the commit 5b7cda2, which was causing issues with user queries.
There is no flag covering the code introduced to check for duplicate field names. This causes some query failures because it breaks legacy behavior.
Test Plan
Unit Tests
Contributor checklist
Release Notes
Please follow release notes guidelines and fill in the release notes below.