enso-org / enso

Hybrid visual and textual functional programming.
https://enso.org
Apache License 2.0
7.34k stars 323 forks source link

The `iif` operation does not work with literal tables in the Snowflake backend #10402

Closed radeusgd closed 2 months ago

radeusgd commented 3 months ago

See the test

+
+            # Literal tables only make sense in the DB.
+            if setup.is_database then group_builder.specify "iif should work with literal tables" <|
+                literal_table = setup.light_table_builder [["X", [True, False, Nothing]], ["row_id", [1, 2, 3]]] . sort "row_id"
+                literal_table.at "X" . value_type . should_equal Value_Type.Boolean
+                c = literal_table.at "X" . iif 10 20
+                c.to_vector . should_equal [10, 20, Nothing]

Currently it fails on Snowflake.

radeusgd commented 2 months ago

This was fixed in the meantime.