Skip to content

Commit b1c7a94

Browse files
fix: add row_number and snapshots to Dremio reserved keywords list (#955)
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: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Itamar Hartstein <haritamar@gmail.com>
1 parent 9e7ed76 commit b1c7a94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

macros/utils/sql_utils/escape_reserved_keywords.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
{% macro dremio__is_reserved_keywords(keyword) %}
1717
{% set cleaned_keyword = (keyword | trim | lower) %}
18-
{% do return(cleaned_keyword in ['filter', 'sql', 'timestamp', 'value', 'one', 'min', 'max', 'sum', 'count']) %}
18+
{% do return(cleaned_keyword in ['filter', 'sql', 'timestamp', 'value', 'one', 'min', 'max', 'sum', 'count', 'row_number', 'snapshots']) %}
1919
{% endmacro %}
2020

2121
{% macro escape_keywords(keyword) %}

0 commit comments

Comments
 (0)