Open chrisfw opened 5 months ago
@chrisfw are you using SQL API to query Cube? It'd be also helpful to see SQL executed in starrocks. You can find it in logs.
Hi @paveltiunov , yes I am using the SQL API. The query + results screen capture I provided is from the DBeaver SQL connection to cube. I will get the Starrocks executed sql for you when I resume work on Tuesday. Regards, Chris
@chrisfw By any chance, are you able to provide the "Starrocks executed sql"?
@igorlukanin , the sql is in the bug description above:
select * from (
select balance_amount from cibalancedetailhistory) a
where a.balance_amount > 100;
Bug Description Using the mysql/starrocks dialect, a simple select with a numeric greater than comparison returns incorrect results. I tried using both a simple select with a where clause and wrapping it in an outer select and neither worked correctly.
balance_amount
is adecimal64 (11,2)
in the underlying mysql/Starrocks databaseTo Reproduce Steps to reproduce the behavior:
BALANCEAMOUNT
column with a range of decimal amountsExpected behavior Only values greater than the specified where clause comparison value should be returned.
Screenshots
Minimally reproducible Cube Schema In case your bug report is data modelling related please put your minimally reproducible Cube Schema here. You can use selects without tables in order to achieve that as follows.
Version: [e.g. 0.35.0]