We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
parse_json
ops.StructField
1 parent 70f24a7 commit 9e80231Copy full SHA for 9e80231
ibis/backends/snowflake/registry.py
@@ -231,7 +231,7 @@ def _nth_value(t, op):
231
ops.DateFromYMD: fixed_arity(sa.func.date_from_parts, 3),
232
ops.StringToTimestamp: fixed_arity(sa.func.to_timestamp_tz, 2),
233
ops.RegexExtract: fixed_arity(sa.func.regexp_substr, 3),
234
- ops.RegexSearch: fixed_arity(lambda left, right: left.op('REGEXP')(right), 2),
+ ops.RegexSearch: fixed_arity(sa.sql.operators.custom_op("REGEXP"), 2),
235
ops.RegexReplace: fixed_arity(sa.func.regexp_replace, 3),
236
ops.ExtractMillisecond: fixed_arity(
237
lambda arg: sa.cast(
@@ -244,8 +244,7 @@ def _nth_value(t, op):
244
t.translate(op.arg), _TIMESTAMP_UNITS_TO_SCALE[op.unit]
245
),
246
ops.StructField: lambda t, op: sa.cast(
247
- sa.func.parse_json(sa.func.get(t.translate(op.arg), op.field)),
248
- t.get_sqla_type(op.output_dtype),
+ sa.func.get(t.translate(op.arg), op.field), t.get_sqla_type(op.output_dtype)
249
250
ops.NthValue: _nth_value,
251
}
0 commit comments