Skip to content

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