-
Notifications
You must be signed in to change notification settings - Fork 48
chore: Use fixture for list/str accessor tests #992
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
tests/data/repeated.jsonl
Outdated
{"rowindex": 0, "list_col": [1]} | ||
{"rowindex": 1, "list_col": [1,2]} | ||
{"rowindex": 2, "list_col": [1,2,3]} | ||
{"rowindex": 3, "list_col": [1,2,3,4]} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To robust the array supports, it would be nice to test different dtypes of an array:
- array of
int64
,bool
,bytes
,date
,datetime
,geography
,numeric
,float64
,time
,timestamp
. - array of an array
- array of an struct, which has a known issue on the constructor: BUG:
read_pandas
Error: 'values' Attribute Missing inChunkedArray
python-bigquery#1992
We can add more comprehensive tests for other data types in a follow-up PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. Added some more common types.
No description provided.