Skip to content

PostgreSQL compatibility: Remove "orderby clauses" workaround#272

Draft
amotl wants to merge 1 commit intomainfrom
rm-tracking-order-by-workaround
Draft

PostgreSQL compatibility: Remove "orderby clauses" workaround#272
amotl wants to merge 1 commit intomainfrom
rm-tracking-order-by-workaround

Conversation

@amotl
Copy link
Copy Markdown
Member

@amotl amotl commented Mar 26, 2026

About

Remove a Python-based workaround in the tracking subsystem where CrateDB has improved in PostgreSQL compatibility.

Edit: Apparently not?

References

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 26, 2026

Walkthrough

This pull request removes MLflow/CrateDB compatibility patches related to ordering from the tracking module. Three functions—patch_get_orderby_clauses(), patch_search_runs(), and fix_sort_order()—are deleted, and the patch_tracking() function no longer invokes them.

Changes

Cohort / File(s) Summary
Removed ordering compatibility patches
mlflow_cratedb/patch/mlflow/tracking.py
Deleted patch_get_orderby_clauses(), patch_search_runs(), and fix_sort_order() functions. Removed their invocations from patch_tracking(). Cleaned up related imports (math, functools.partial).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 Hops skip through the code so clean,
Ordering patches no longer seen,
Fixes fade like morning dew,
Simpler patches—less to chew!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description check ✅ Passed The pull request description clearly relates to the changeset, explaining the removal of ordering-related workarounds from the tracking subsystem due to CrateDB improvements.
Title check ✅ Passed The title accurately summarizes the main change: removing the 'orderby clauses' workaround from the tracking subsystem due to improved CrateDB compatibility.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch rm-tracking-order-by-workaround

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@amotl
Copy link
Copy Markdown
Member Author

amotl commented Mar 27, 2026

@seut: Thank you for acknowledging. I was a little too fast: Apparently, removing the workaround is not applicable yet. I need to investigate why/where CrateDB is behaving differently compared with PostgreSQL.

@amotl amotl changed the title Compatibility: Remove "orderby clauses" workaround in tracking subsystem PostgreSQL compatibility: Remove "orderby clauses" workaround in tracking subsystem Mar 29, 2026
@amotl amotl changed the title PostgreSQL compatibility: Remove "orderby clauses" workaround in tracking subsystem PostgreSQL compatibility: Remove "orderby clauses" workaround Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SQL syntax: UnsupportedFeatureException[Cannot ORDER BY '<expression>': invalid return type 'undefined'.]

2 participants