-
Notifications
You must be signed in to change notification settings - Fork 114
Closed
Labels
L1Suitable for a first taskSuitable for a first tasklanguageAn issue in the Malloy languageAn issue in the Malloy language
Description
run: duckdb.sql("""
SELECT 'null' as name, null as value
UNION ALL
SELECT 'not null' as name, 1 as value
""") -> {
group_by: value
group_by: `null != null` is null != null
group_by: `value != null` is value != null
group_by: `value != value` is value != value
group_by: `null != value` is null != value
}
Produces
SELECT
base."value" as "value",
false as "null != null",
base."value" IS NOT NULL as "value != null",
NOT(COALESCE(base."value"=base."value", FALSE)) as "value != value",
base."value"IS NOT NULL as "null != value"
FROM (
SELECT 'null' as name, null as value
UNION ALL
SELECT 'not null' as name, 1 as value
) as base
GROUP BY 1,2,3,4,5
ORDER BY 1 asc NULLS LAST| value | null != null | value != null | value != value | null != value |
|---|---|---|---|---|
| 1 | false | true | false | true |
| ∅ | false | false | true | false |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
L1Suitable for a first taskSuitable for a first tasklanguageAn issue in the Malloy languageAn issue in the Malloy language