Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 9a58e07

Browse files
authored
Update bigframes/core/compile/scalar_op_compiler.py
1 parent b3ea901 commit 9a58e07

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

bigframes/core/compile/scalar_op_compiler.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,6 +1073,11 @@ def geo_st_intersection_op_impl(x: ibis_types.Value, y: ibis_types.Value):
10731073
)
10741074

10751075

1076+
@scalar_op_compiler.register_unary_op(ops.geo_x_op)
1077+
def geo_x_op_impl(x: ibis_types.Value):
1078+
return typing.cast(ibis_types.GeoSpatialValue, x).x()
1079+
1080+
10761081
@scalar_op_compiler.register_unary_op(ops.GeoStLengthOp, pass_op=True)
10771082
def geo_length_op_impl(x: ibis_types.Value, op: ops.GeoStLengthOp):
10781083
# Call the st_length UDF defined in this file (or imported)

0 commit comments

Comments
 (0)