Skip to content
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

chore: Improve array_contains support and add array support to native_datafusion scan #1324

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

andygrove
Copy link
Member

@andygrove andygrove commented Jan 22, 2025

Which issue does this PR close?

Closes #1322

Rationale for this change

  • Add tests for more data types
  • Fall back to Spark for unsupported types

What changes are included in this PR?

  • array_contains type checks and tests
  • Enable array support in native_datafusion scan

How are these changes tested?

@andygrove andygrove changed the title chore: Improve array_contains support chore: Improve array_contains support and add array support to native_datafusion scan Jan 22, 2025
@@ -111,7 +111,7 @@ pub fn to_arrow_datatype(dt_value: &DataType) -> ArrowDataType {
{
DatatypeStruct::List(info) => {
let field = Field::new(
"item",
"element",
Copy link
Member Author

Choose a reason for hiding this comment

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

This change was necessary to resolve an error trying to cast List(Field { name: "element", .. to List(Field { name: "item", .. in schema_adapter

@andygrove
Copy link
Member Author

@mbutrovich This PR touches native_datafusion, so I will leave this in draft until you have time to review to make sure I am not introducing regressions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[native_datafusion] Add support for reading arrays
1 participant