You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request]: Support OFFSET without LIMIT for Power BI DirectQuery folding #26769
kind/compatibilityThe compatibility with mysql 8.0 should be discussed further.kind/featureseverity/s0Active / top priority for current sprint. Owner has committed to working on it now.
Power Query's ODBC SQL generator requires a dialect to accept all three forms before a connector can advertise LimitClauseKind.LimitOffset:
LIMIT n
LIMIT n OFFSET m
OFFSET m
MatrixOne supports the first two forms, but the offset-only form fails. This prevents the MatrixOne Power BI connector from safely folding Table.Skip/offset-only DirectQuery operations.
Reproduction
Tested on MatrixOne main commit d0057b3503611022cdf9a6e24c98065d209eb8e4 (8.0.30-MatrixOne-v):
CREATEDATABASEIF NOT EXISTS pbi_offset;
CREATETABLEIF NOT EXISTS pbi_offset.t (id INT);
INSERT INTOpbi_offset.tVALUES (1), (2), (3);
SELECT id FROMpbi_offset.tORDER BY id OFFSET 1;
The parameterized form needed by ODBC also needs to work:
SELECT id FROMpbi_offset.tORDER BY id OFFSET ?
Expected behavior
The offset-only query returns rows 2, 3, and the prepared form accepts an integer parameter.
Power BI impact
Microsoft's ODBC connector guidance says LimitClauseKind.LimitOffset requires offset without limit. Until MatrixOne supports this syntax, matrixone-odbc must conservatively advertise LimitClauseKind.Limit, which reduces query folding for skip/pagination operations in DirectQuery.
The MatrixOne ODBC connector now has a compatibility PR at matrixorigin/matrixone-odbc#7. It conservatively advertises Power Query LimitClauseKind.Limit and keeps OFFSET-without-LIMIT as an executable XFAIL. Once this issue is fixed, the test will turn into a normal pass and the connector can safely restore LimitOffset folding.
kind/compatibilityThe compatibility with mysql 8.0 should be discussed further.kind/featureseverity/s0Active / top priority for current sprint. Owner has committed to working on it now.
Activity
iamlinjunhong commentedon Aug 7, 2026
The MatrixOne ODBC connector now has a compatibility PR at matrixorigin/matrixone-odbc#7. It conservatively advertises Power Query LimitClauseKind.Limit and keeps OFFSET-without-LIMIT as an executable XFAIL. Once this issue is fixed, the test will turn into a normal pass and the connector can safely restore LimitOffset folding.
fix(parser): support OFFSET without LIMIT (#27021)
fix(parser): support OFFSET without LIMIT (matrixorigin#27021)
fix(parser): support OFFSET without LIMIT (matrixorigin#27021)
fix(parser): support OFFSET without LIMIT (matrixorigin#27021)