Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Jan 31, 2025

Which issue does this PR close?

Rationale for this change

We don't have test coverage for having to coerce List(Struct) --> LargeList(Struct) where some of the inner Struct fields need to be coerced too

What changes are included in this PR?

  1. Tests
  2. Add a to_large_list testing function to coerce List --> LargeList (otherwise I can't create LargeList of Struct) 🤔

Are these changes tested?

Yes, all tests

Are there any user-facing changes?

@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Jan 31, 2025
@alamb alamb changed the title Add tests for coercing structs Add tests for coercing sub fields of Lists / LargeLists of structs Jan 31, 2025
case when not column1 then column2 else column3 end
from t;
----
[{c0: bar}] [{c0: bar}]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is clearly wrong -- it should have 'foo' as the field name

@alamb
Copy link
Contributor Author

alamb commented Jan 31, 2025

real fix in #14385

@alamb alamb closed this Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Type Coercion fails for List with inner type struct which has large/view types

1 participant