Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public enum ScalarFunction {
LESS_THAN_OR_EQUAL(Category.COMPARISON, SqlKind.LESS_THAN_OR_EQUAL),
IS_NULL(Category.COMPARISON, SqlKind.IS_NULL),
IS_NOT_NULL(Category.COMPARISON, SqlKind.IS_NOT_NULL),
IS_TRUE(Category.COMPARISON, SqlKind.IS_TRUE),
IS_FALSE(Category.COMPARISON, SqlKind.IS_FALSE),
IS_NOT_TRUE(Category.COMPARISON, SqlKind.IS_NOT_TRUE),
IS_NOT_FALSE(Category.COMPARISON, SqlKind.IS_NOT_FALSE),
IN(Category.COMPARISON, SqlKind.IN),
LIKE(Category.COMPARISON, SqlKind.LIKE),
PREFIX(Category.COMPARISON, SqlKind.OTHER_FUNCTION),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ public class DataFusionAnalyticsBackendPlugin implements AnalyticsSearchBackendP
ScalarFunction.LESS_THAN_OR_EQUAL,
ScalarFunction.IS_NULL,
ScalarFunction.IS_NOT_NULL,
ScalarFunction.IS_TRUE,
ScalarFunction.IS_FALSE,
ScalarFunction.IS_NOT_TRUE,
ScalarFunction.IS_NOT_FALSE,
ScalarFunction.IN,
ScalarFunction.LIKE,
ScalarFunction.REGEXP_CONTAINS,
Expand Down Expand Up @@ -146,6 +150,10 @@ public class DataFusionAnalyticsBackendPlugin implements AnalyticsSearchBackendP
ScalarFunction.IS_NULL,
ScalarFunction.IS_NOT_NULL,
ScalarFunction.NULLIF,
ScalarFunction.IS_TRUE,
ScalarFunction.IS_FALSE,
ScalarFunction.IS_NOT_TRUE,
ScalarFunction.IS_NOT_FALSE,
// ABS / SUBSTRING — PPL sort-pushdown moves these into the project tree; DataFusion has
// both natively and isthmus's default catalog binds them, so no adapter needed.
ScalarFunction.ABS,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source=function_tests | where not true = case(amount > 0, true, amount < 0, false else false) | fields user, amount, status | head 10
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source=function_tests | where true = case(amount > 0, true else false) | fields user, amount | head 10
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source=function_tests | where false = case(amount > 0, true else false) | fields user, amount | head 10
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source=function_tests | eval is_positive = case(amount > 0, true else false) | where not false = is_positive | fields user, amount, is_positive | head 10
Loading