bug: Interval precision is None
when ibis handle interval type of BigQuery
#10357
Labels
bug
Incorrect behavior inside of ibis
What happened?
When selecting interval or getting the return type is interval, ibis can't handle the type in the schema to ibis type
I found the type that bigquery python client returned is not with precision in the schema.
ibis/ibis/backends/bigquery/__init__.py
Lines 651 to 657 in 11f8921
And the
_from_sqlglot_INTERVAL
ofSqlglotType
uses a class fielddefault_interval_precision
.ibis/ibis/backends/sql/datatypes.py
Lines 290 to 311 in b16db6a
The class
BigQueryType
does not implement it. I am not sure this issue should just make thedefault_interval_precision
with a unit will be okay.What version of ibis are you using?
9.5.0
What backend(s) are you using, if any?
bigquery
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: