Skip to content

Commit

Permalink
test(snowflake): fix snowflake test (#10292)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored Oct 9, 2024
1 parent 54889db commit 733e28c
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions ibis/backends/snowflake/tests/test_udf.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,21 @@ def predict_price(
predicted_price=predict_price(
(_.carat - _.carat.mean()) / _.carat.std(),
_.cut.cases(
(c, i)
for i, c in enumerate(
("Fair", "Good", "Very Good", "Premium", "Ideal"), start=1
*(
(c, i)
for i, c in enumerate(
("Fair", "Good", "Very Good", "Premium", "Ideal"), start=1
)
)
),
_.color.cases((c, i) for i, c in enumerate("DEFGHIJ", start=1)),
_.color.cases(*((c, i) for i, c in enumerate("DEFGHIJ", start=1))),
_.clarity.cases(
(c, i)
for i, c in enumerate(
("I1", "IF", "SI1", "SI2", "VS1", "VS2", "VVS1", "VVS2"),
start=1,
*(
(c, i)
for i, c in enumerate(
("I1", "IF", "SI1", "SI2", "VS1", "VS2", "VVS1", "VVS2"),
start=1,
)
)
),
)
Expand Down

0 comments on commit 733e28c

Please sign in to comment.