-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot change data type in Power Query #4
Comments
…tively supported by CAST and CONVERT functions in MariaDB.
@Akos90 Thank you for reporting the issue. It's been fixed. Tip: to resolve the issue before the next release of MariaDB Power BI Connector and without rebuilding the Connector manually:
Insight into the driver error 1064 "check for the right syntax"When data type is changed to Whole Number, Power Query Editor uses M data type Int64 and generates a line of code similar to this: Power BI Mashup Engine translates M data type Int64 to SQL data type BIGINT by default.
MariaDB implementation of CAST and CONVERT functions supports a limited set of data types and BIGINT is not supported. This is a long-standing issue with CAST and CONVERT in MariaDB: The fix in MariaDB Power BI Connector excludes BIGINT from the list of of the supported SQL data types. Effectively, Power BI Mashup Engine assumes BIGINT is not supported by the database driver and does not use the data type when transforming M statements to SQL statements. This workaround does not affect consuming BIGINT data from MariaDB, because in a typical SELECT statement data type is not explicitly specified. The fix has been tested with MariaDB 10.5.8 in strict mode by fetching data from BIGINT and BIGINT UNSIGNED columns. The was no loss of data observed, so the fix is safe to use with actual BIGINT data. |
@gcarneiro Thank you for reporting the issue. It is being looked into. |
I am using MariaDB 11.1.2 on ubuntu. Tried to update mariadb jdbc connector but no success... |
Changing data type throws error. Column is calculated and only contains 0 and 1.
Is there a way to disable query folding?
The text was updated successfully, but these errors were encountered: