I got this error when query MS SQL server from Power BI - Dremio connector.
The below SQL script is auto-generated by PowerBI…
select “FIELD_NAME”
from "MSSQL.“DBTABLE”
group by “FIELD_NAME”
order by “FIELD_NAME”
OFFSET 0 ROWS FETCH FIRST 501 ROWS ONLY
As a temp fix, I tried it works if i create reflection for the table. and there will not be an error with syntax like OFFSET. However it is not a long term solution as i can’t create reflection for every single table…Please advise whether it can be fixed?
Actually currently Dremio does support the OFFSET syntax from PowerBI. Can you share the job profile?
Below please find the profile from 2 similar queries as mentioned, but with error "The JDBC storage plugin failed while trying setup the SQL query. "
6efbc161-5128-4d25-838e-a58513281c52.zip (5.4 KB)
ae03c72f-3a2e-417c-8592-0a7fd8a89f79.zip (5.5 KB)
Hi, i found another case that will give me JDBC error.
We have a MS SQL view with column EM_ID (type = uniqueidentifier). We can do select * of the table. but we cannot query the EM_ID field directly from the table.
i.e. we can Select * from TABLE:
4073a9ac-f57a-4dfe-b487-3439c79e5045.zip (7.3 KB)
but we cannot select EM_ID from TABLE.
1c796a70-ea82-464e-b9e0-7f24f4c373a6.zip (5.4 KB)
It’s strange…
One more information about (2) is that…the total number of row in the table is just 49. but the PowerBI is querying next 501 rows in the SQL script. I don’t know whether there is any relationship…
But i tried to change 501 to number less than 49, it does not work too…
Can you specify column types? EM_ID error is because it’s of a UNIQUEIDENTIFIER type, which is a known issue I’m looking into. How about CIPMS_COMBINE_PART_FLAG & ABBREVIATION?