Skip to content

Commit

Permalink
fix(trino): generate first_value/lasts_value instead of arbitrary
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Mar 12, 2024
1 parent 4bdc040 commit 710f8ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ibis/backends/sql/dialects.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,5 +294,7 @@ def make_cross_joins_explicit(node):
Trino.Generator.TRANSFORMS |= {
sge.BitwiseLeftShift: rename_func("bitwise_left_shift"),
sge.BitwiseRightShift: rename_func("bitwise_right_shift"),
sge.FirstValue: rename_func("first_value"),
sge.Join: transforms.preprocess([make_cross_joins_explicit]),
sge.LastValue: rename_func("last_value"),
}

0 comments on commit 710f8ac

Please sign in to comment.