-
Notifications
You must be signed in to change notification settings - Fork 605
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
bug(binder): wrong type inference for struct
with multiple fields in CASE
expression
#7189
Labels
Milestone
Comments
struct
with multiple fields in CASE
expression
mergify bot
pushed a commit
that referenced
this issue
Jan 4, 2023
Add more input types to sqlsmith (`struct`, `list`). ### Motivation for refactoring `DataTypeName` - Previously we use `DataTypeName` internally to indicate which expressions to generate. - This is insufficient, since it elides `struct` and `list` internal types. - Now we use `DataType` directly. - In this PR we support generating these new variants as scalar values, and columns. - Other PR may support generating functions, see: #7132. - This will likely work by generating some variants of structs and lists we can choose from, - During setup: insert function signatures which can work with these structs and lists. - During setup: Define relations with these variants as columns. ### Misc - Disable struct scalar due to #7189 - Disable timestamptz due to #5826 Approved-By: lmatz Co-Authored-By: Tao Wu <wutao@singularity-data.com> Co-Authored-By: Noel Kwan <noelkwan1998@gmail.com> Co-Authored-By: Noel Kwan <47273164+kwannoel@users.noreply.github.com>
It is due to the fact that we do not allow casting between the same type, so the 2nd field fails to match interval to interval 😂
Maybe changing this to |
3 tasks
mergify bot
pushed a commit
that referenced
this issue
Jan 5, 2023
Fix row type alignment. As mentioned by @xiangjinwu [here](#7189 (comment)): > It is due to the fact that we do not allow casting between the same type, so the 2nd field fails to match interval to interval 😂 Thanks to @xiangjinwu for pointing out the quick fix. Approved-By: xiangjinwu
This comment was marked as outdated.
This comment was marked as outdated.
Ignore this, it works as expected I was testing on the old branch 😶🌫️ |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Describe the bug
Single field struct
Multiple field
To Reproduce
Expected behavior
Additional context
No response
The text was updated successfully, but these errors were encountered: