[ODBC-312] PowerBI import data with text filter raises SQL syntax error (Reproducible!) Created: 2021-05-03 Updated: 2024-01-13 |
|
| Status: | Open |
| Project: | MariaDB Connector/ODBC |
| Component/s: | General |
| Affects Version/s: | 3.1.12 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | JeongJu, Kim | Assignee: | Lawrin Novitsky |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows10, PowerBI |
||
| Issue Links: |
|
||||||||
| Description |
|
Hi, I reported about it to PowerBI community, but they couldn't help it since they (MS) don't have the ownership of MariaDB Connector. The following is my original post, so please refer to it and fix the problem. Best, Hi, Connection & Simple import job worked well. But when I add text filtering (equality check) in Power Query Editor, it raises SQL syntax error like this: [ma-3.1.11][10.3.25-MariaDB-0ubuntu0.20.04.1-log]You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'LONG VARCHAR) = ? and `PARTNERS` is not null' at line 11 PARTERS is the column name which I add filter to. It's very easy to reproduce the problem. In MariaDB just create a table like this: create table test (name varchar(256), score int(11)); then, insert two rows: insert into test values ('john', 90); To get data from MariaDB in PowerBI, import 'test' table then click 'transform data'. In resulting Power Query Editor, add text filter for name 'nick'. Then close & load. That's all, I hope you could reproduce the problem, and fix it SOON! Best. |
| Comments |
| Comment by ilya [ 2021-06-10 ] |
|
haje01 This issue was fixed MariaDB Connector for PowerBI. See discussion and the fix here: As you have noticed the problem manifests on VARCHAR columns with a size > 255 only. Although the Power BI Connector makes a workaround, there are two related issues: |