Skip to content

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

Merged
merged 10 commits into from
Sep 17, 2024
Merged

chore: Use fixture for list/str accessor tests #992

merged 10 commits into from
Sep 17, 2024

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 chelsea-lin and a team September 16, 2024 21:15
@sycai sycai merged commit 22b483a into main Sep 17, 2024
22 of 23 checks passed
@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