Why can't I query a Boolean column?

Question

Why is it not possible to query a column of the Boolean type?

Groovy
datamartQuery.select("Distributor", "distributor")

Distributor is a Boolean and when I run the query then it returns null and the following warning:

Invalid datamart query: [distributor] Projection invalid for rollup: Distributor

5dfa0167fb8b4a25a423101b156abbf5.png

Is there any workaround for that?

Answer

The solution is to disable the rollup. You can do it by passing false in the second parameter to DatamartContext.newQuery(Table table, boolean rollup).