-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
error reading bigquery table having column of type datetime #20700
Comments
These don't appear to be Arrow Datetime values, but rather some custom/extension type called |
I can confirm this issue is still present in polars 1.20.0. When trying to handle BigQuery's Steps to reproduce:
The specific error encountered is: ComputeError: cannot create series from Extension(ExtensionType { name: "google:sqlType:datetime", inner: Timestamp(Microsecond, None), metadata: None }) |
Indeed - but then, we shouldn't have to; ideally BigQuery should be able to produce standard Arrow Datetime values rather than a custom "google:sqlType:datetime" ExtensionType (I'm unsure why they do this 🤔). |
Removing the metadata from the fields seems to work as a workaround:
Any idea why it worked in polars<1.18.0? Here's some sample data in case someone wants to investigate: https://storage.googleapis.com/cosmic-mariner-294413-ew6/table.parquet
|
Checks
Reproducible example
Log output
--------Version info---------
Polars: 1.18.0
Index type: UInt32
Platform: macOS-15.2-x86_64-i386-64bit-Mach-O
Python: 3.13.0 (main, Oct 16 2024, 09:15:13) [Clang 18.1.8 ]
LTS CPU: False
----Optional dependencies----
adbc_driver_manager
altair
azure.identity
boto3
cloudpickle
connectorx
deltalake
fastexcel
fsspec
gevent
google.auth 2.37.0
great_tables
matplotlib
nest_asyncio
numpy
openpyxl
pandas
pyarrow 18.1.0
pydantic
pyiceberg
sqlalchemy
torch
xlsx2csv
xlsxwriter 3.2.0
The text was updated successfully, but these errors were encountered: