Skip to content

Commit

Permalink
chore: avoid rendering srid for bigquery
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Jul 4, 2024
1 parent fb54148 commit 14351fe
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ibis/backends/sql/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,10 +879,7 @@ def _from_ibis_UInt32(cls, dtype: dt.UInt32) -> sge.DataType:
@classmethod
def _from_ibis_GeoSpatial(cls, dtype: dt.GeoSpatial) -> sge.DataType:
if (dtype.geotype, dtype.srid) == ("geography", 4326):
return sge.DataType(
this=sge.DataType.Type.GEOGRAPHY,
expressions=[None, sge.DataTypeParam(this=sge.convert(dtype.srid))],
)
return sge.DataType(this=sge.DataType.Type.GEOGRAPHY)
else:
raise com.UnsupportedBackendType(
"BigQuery geography uses points on WGS84 reference ellipsoid."
Expand Down

0 comments on commit 14351fe

Please sign in to comment.