mapColumnsNotNull
inline fun <E : Any, T : BaseTable<E>, C : Any> EntitySequence<E, T>.mapColumnsNotNull(isDistinct: Boolean = false, columnSelector: (T) -> ColumnDeclaring<C>): List<C>(source)
Customize the selected columns of the internal query by the given columnSelector function, and return a List containing the non-null results.
This function is similar to EntitySequence.mapColumns, but null results are filtered, more details can be found in its documentation.
The operation is terminal.
Parameters
isDistinct
specify if the query is distinct, the generated SQL becomes select distinct
if it's set to true.
columnSelector
a function in which we should return a column or expression to be selected.