Skip to content

Commit 404554b

Browse files
committed
fix analyze contain keyword
1 parent b37e778 commit 404554b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/query/service/src/interpreters/interpreter_table_analyze.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,12 @@ impl Interpreter for AnalyzeTableInterpreter {
160160
)
161161
};
162162

163+
let quote = self.ctx.get_settings().get_sql_dialect()?.default_ident_quote();
163164
let index_cols: Vec<(u32, String)> = schema
164165
.fields()
165166
.iter()
166167
.filter(|f| RangeIndex::supported_type(&f.data_type().into()))
167-
.map(|f| (f.column_id(), f.name.clone()))
168+
.map(|f| (f.column_id(), format!("{quote}{}{quote}", f.name)))
168169
.collect();
169170

170171
// 0.01625 --> 12 buckets --> 4K size per column

0 commit comments

Comments
 (0)