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

The _ARROW_SCALAR_IDS_TO_BQ mapping misses LargeStringArray type #1795

Closed
chelsea-lin opened this issue Jan 23, 2024 · 0 comments · Fixed by #1796
Closed

The _ARROW_SCALAR_IDS_TO_BQ mapping misses LargeStringArray type #1795

chelsea-lin opened this issue Jan 23, 2024 · 0 comments · Fixed by #1796
Assignees
Labels
api: bigquery Issues related to the googleapis/python-bigquery API.

Comments

@chelsea-lin
Copy link
Contributor

Environment details

  • OS type and version: Linux
  • Python version: 3.11.7
  • pip version: 23.3.1
  • google-cloud-bigquery version: 3.16.0

Steps to reproduce

Call bqclient.load_table_from_dataframe with a dataframe containing a string type. Before pandas 2.2.0, the pyarrow.array would detect the type as pyarrow.lib.StringArray. After switching to pandas 2.2.0, the pyarrow.lib.LargeStringArray would be returned. But it misses the BQ type mapping.

Stack trace

callstack

The left results are in pandas 2.2.0 and the right result are from pandas 2.1.3

@chelsea-lin chelsea-lin self-assigned this Jan 23, 2024
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Jan 23, 2024
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 API.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant