JetBrains / JetBrains/Exposed

QueryAlias.get() should return nullable columns (Column<T?> or ExpressionAlias<T?>)

Open
#969 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Kotlin
Stars
9.3k
Forks
798
Avg merge
4d 2h
Merged PRs (30d)
26

Description

If you have aliased a query it could be part of a join which may result a column being null even though that column is not nullable in the original table.
Therefore when retrieving a column from an Aliased query that column should be of nullable type. The unchecked cast that is part of that implementation at the moment could lead to NullPointerExceptions.
Also when you do check for null after the get idea tells you it is a useless check.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.