Skip to content

Commit 5f1aed0

Browse files
Use the shared ARRAY step validation in partial updates
1 parent 165f37c commit 5f1aed0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎pyathena/sqlalchemy/_array_update.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def rebuild(array, array_type, path):
186186
f"greatest(cardinality({array}) - {tail_start} + 1, 0))"
187187
)
188188
return compiler._array_slice_step(
189-
f"concat({prefix}, {padding}, {rhs}, {suffix})", bound.step, **kw
189+
f"concat({prefix}, {padding}, {rhs}, {suffix})", bound.step, array_type, **kw
190190
)
191191
index = _index_sql(compiler, bound, **kw)
192192
variable = compiler._array_lambda_name()

0 commit comments

Comments
 (0)