8000 chore: Use fixture for list/str accessor tests by sycai · Pull Request #992 · googleapis/python-bigquery-dataframes · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@sycai
Copy link
Contributor
@sycai sycai commented Sep 16, 2024

No description provided.

@sycai sycai requested review from a team as code owners September 16, 2024 20:51
@sycai sycai requested a review from shobsi September 16, 2024 20:51
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Sep 16, 2024
@sycai sycai added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 16, 2024
@bigframes-bot bigframes-bot removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 16, 2024
Copy link
Contributor
@chelsea-lin chelsea-lin left a comment

Choose a reason for hiding this comment

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

Thank you!

{"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]}
Copy link
Contributor

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:

  1. array of int64, bool, bytes, date, datetime, geography, numeric, float64, time, timestamp.
  2. array of an array
  3. array of an struct, which has a known issue on the constructor: BUG: read_pandas Error: 'values' Attribute Missing in ChunkedArray python-bigquery#1992

We can add more comprehensive tests for other data types in a follow-up PR.

Copy link
Contributor Author

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.

@sycai sycai requested review from a team and chelsea-lin September 16, 2024 21:15
@sycai sycai merged commit 22b483a into main Sep 17, 2024
@sycai sycai deleted the b364405145 branch September 17, 2024 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

0