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 indexed fields support to python api #1502

Merged
merged 2 commits into from
Dec 31, 2021

Conversation

nl5887
Copy link
Contributor

@nl5887 nl5887 commented Dec 28, 2021

Closes #1501.

This implements indexed field access for Python similar to SQL (col('a')['b']).

implements nested structs `col("a")['b']`
@alamb
Copy link
Contributor

alamb commented Dec 29, 2021

Thanks @nl5887 ! Can you please write a test -- perhaps by adding to one of the existing suites in https://github.com/apache/arrow-datafusion/tree/master/python/datafusion/tests ?

@nl5887
Copy link
Contributor Author

nl5887 commented Dec 29, 2021

Totally missed the test. Sorry about that. Added the test @alamb.

@alamb
Copy link
Contributor

alamb commented Dec 29, 2021

Thanks @nl5887 -- looks good to me. I kicked off the tests and we can merge this in when they pass 👍

@jimexist jimexist merged commit 7374b18 into apache:master Dec 31, 2021
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.

Python api doesn't have indexed field access (see #1005)
3 participants