[MCOL-3935] Power BI Direct Query Adapter Created: 2020-01-11  Updated: 2020-09-21  Resolved: 2020-09-17

Status: Closed
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: N/A
Fix Version/s: 5.4.1

Type: New Feature Priority: Major
Reporter: Todd Stoffel (Inactive) Assignee: ilya
Resolution: Done Votes: 2
Labels: BI:Tools

Attachments: Zip Archive PBIDesktop-MashupEngine-bug-report-20200626-with-MEZ-file.zip    
Issue Links:
Blocks
is blocked by MCOL-4282 Prepared Statement Causing Signal 11 Closed
Epic Link: ColumnStore Utility Improvements

 Description   

Develop a Power BI direct query adapter for MariaDB and get it certified by Microsoft.

https://github.com/Microsoft/DataConnectors

https://docs.microsoft.com/en-us/power-query/connectorcertification



 Comments   
Comment by ilya [ 2020-06-26 ]

A bug has been identified in Power BI Desktop Mashup Engine.

Reported to and assistance requested from the DataConnectors GitHub community lead:
https://github.com/CurtHagenlocher

The issue might become a showstopper when using the custom Power BI connector in some common use cases like selecting top few rows from a table, e.g. Table.TakeN() [a.k.a. SELECT X FROM Y LIMIT Z]

The detailed bug report with trace info and root analysis attached in PBIDesktop-MashupEngine-bug-report-20200626-with-MEZ-file.zip

Comment by ilya [ 2020-06-29 ]

Response from Curt Hagenlocher:

From: Curt Hagenlocher <curth@microsoft.com>
Sent: 29 June 2020 01:50
To: Ilya Belomutov <ilyabelomutov@hotmail.com>
Cc: todd.stoffel@mariadb.com; Colin Popell <George.Popell@microsoft.com>; Anantha Ganjam <anganjam@microsoft.com>
Subject: RE: [EXTERNAL] Fwd: Power BI Desktop Mashup Engine bug report

Questions related to certified connectors should generally go to Colin Popell (George.Popell@microsoft.com).

This behavior is effectively "by design" – at least for now. The fundamental issue is that ODBC is defined in terms of SQL-92, which lacks any kind of standardization around TOP or LIMIT. Because of this, there are no capability flags in the ODBC specification which would say whether or not e.g. the TOP clause is supported inside a subquery. Now of course the same is true for TOP as a whole, but we couldn’t avoid implementing support for basic uses of it for obvious reasons – and we did it by adding the LimitClauseKind – but we haven’t yet done the same for more complicated scenarios.

Frankly, a naked TOP is a bit of a dodgy operation when it comes to relational databases anyway, as there’s no well-defined order for the rows being returned without an explicit ORDER BY. So in the sample you provided, which takes “the first ten rows in the flights table”, the actual rows returned are entirely database-dependent. This can be surprising to a user who expects that it will be the first ten rows that appear in the previous step of the query editor. I’m curious whether this example comes from a specific user-driven scenario or a more mechanical testing of the functionality available in the UI.

In any event, this is only the second time in four years that someone has raised this issue so we’re not likely to assign a very high priority to it. If can be done cheaply and with low risk then we’ll consider making a change.

Generated at Thu Feb 08 02:46:33 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.