diff --git a/trino/trino.go b/trino/trino.go index 1ae20f1..e16bdb8 100644 --- a/trino/trino.go +++ b/trino/trino.go @@ -1469,7 +1469,7 @@ func (c *typeConverter) ConvertValue(v interface{}) (driver.Value, error) { return nil, err } return vv.Bool, err - case "json", "char", "varchar", "varbinary", "interval year to month", "interval day to second", "decimal", "ipaddress", "uuid", "unknown": + case "json", "char", "varchar", "varbinary", "interval year to month", "interval day to second", "decimal", "ipaddress", "uuid", "SphericalGeography", "unknown": vv, err := scanNullString(v) if !vv.Valid { return nil, err diff --git a/trino/trino_test.go b/trino/trino_test.go index c79b1d9..31b9d99 100644 --- a/trino/trino_test.go +++ b/trino/trino_test.go @@ -1419,6 +1419,12 @@ func TestTypeConversion(t *testing.T) { []interface{}{"b"}, }, }, + { + DataType: "SphericalGeography", + RawType: "SphericalGeography", + ResponseUnmarshalledSample: "Point (0 0)", + ExpectedGoValue: "Point (0 0)", + }, } for _, tc := range testcases {