Closed MJegorovas closed 1 month ago
🤔 I think this is currently by design - a nullable result generates a table interface see https://github.com/cashapp/sqldelight/discussions/3945
Even though the column size
is NOT NULL
the result of SUM()
is considered nullable
https://github.com/cashapp/sqldelight/blob/5606c7ea71a0bb8162682a000582daacf2f577bf/sqldelight-compiler/src/main/kotlin/app/cash/sqldelight/core/lang/util/ExprUtil.kt#L106-L113
e.g for example, using ROUND()
would return Long
directly
Bummer, but the reason makes sense. Thanks!
SQLDelight Version
2.0.1
SQLDelight Dialect
sqlite-3-38
Describe the Bug
Example sql:
Generated code:
Why does it return wrapped data class and not
Long?
directly?Stacktrace
No response