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

Add missing array functions #551

Merged
merged 7 commits into from
Dec 28, 2023
Merged

Add missing array functions #551

merged 7 commits into from
Dec 28, 2023

Conversation

ongchi
Copy link
Contributor

@ongchi ongchi commented Dec 21, 2023

Which issue does this PR close?

Part of #463

Rationale for this change

Array functions should be implemented for the Python API.

What changes are included in this PR?

Array functions:

  • array_append
  • array_concat
  • array_cat
  • array_dims
  • list_dims
  • array_element
  • array_extract
  • list_element
  • list_extract
  • array_length
  • list_length

Are there any user-facing changes?

Yes.

@@ -25,6 +25,8 @@
from datafusion import functions as f
from datafusion import literal

np.seterr(invalid="ignore")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's reasonable to turn off warnings of invalid floating-point errors, which can safely be ignored in test cases.

Copy link
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

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

Thanks @ongchi

@andygrove andygrove merged commit b22f82f into apache:main Dec 28, 2023
10 checks passed
@ongchi ongchi deleted the arr_func branch January 1, 2024 09:27
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.

2 participants