Conversation
These keywords are reserved in Dremio's Calcite SQL parser and need to be quoted when used as column aliases or identifiers. Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
👋 @devin-ai-integration[bot] |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA Dremio-specific SQL macro's reserved keywords list has been expanded to include two additional keywords: "row_number" and "snapshots". The macro's core functionality of trimming and lowercasing input before comparison remains unchanged. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
Adds
row_numberandsnapshotsto the Dremio reserved keywords list inescape_reserved_keywords.sql. Both are reserved in Dremio's Calcite SQL parser and cause parse errors when used as unquoted column aliases or identifiers.Discovered while working on elementary CLI Dremio support (elementary#2135), where
edr monitor reportfails with:Encountered "as row_number"— fromget_models_latest_invocationmacroEncountered ", snapshots"— from CTE names in alert population macrosReview & Testing Checklist for Human
ROW_NUMBERandSNAPSHOTSare listed on Dremio reserved keywords docsNotes
elementary.escape_reserved_keywords()for these identifiersSummary by CodeRabbit
Release Notes