calcite icon indicating copy to clipboard operation
calcite copied to clipboard

Draft pr to simplify and fix ORDER BY ordinal issues

Open jhugomoore opened this issue 2 years ago • 5 comments

Exploring what would have to change in ReltoSqlConverterTest in order to simplify SqlImplementor->Context->orderField.

Current findings Tests that seem to be caused by bugs

  • testConvertWindowToSql Put in fix for egregious issue of (group by 10) in query 1. Ignore ordinals when in an aliasContext was fix. Don’t know enough about what it’s doing in the rest to be sure if they’re correct. 6 & 8 definitely seem wrong
  • testMySqlUnparseListAggCall listagg() order by shouldn't be ordinals, seems needlessly confusing
  • PigRelOpTest -> testForEachNested Confusing change, doesn't seem to match anything else.
  • PigRelOpTest -> testRank() Inserts Ordinals that don't exist

Tests that insert a pretty crazy select clause, not sure if it’s what we want

  • testOrderByNotInSelectList
  • testRewriteOrderByWithNumericConstants
  • testSelectQueryWithAscDescOrderByClause
  • testSelectQueryWithLimitOffsetClause
  • testSelectQueryWithTwoOrderByClause

jhugomoore avatar Jun 28 '23 00:06 jhugomoore

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 90 days if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Dec 30 '24 03:12 github-actions[bot]

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 90 days if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Mar 20 '25 03:03 github-actions[bot]

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 90 days if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Jun 29 '25 03:06 github-actions[bot]

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 90 days if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Oct 27 '25 03:10 github-actions[bot]