We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e2171a commit 7947087Copy full SHA for 7947087
packages/cubejs-ksql-driver/src/KsqlQuery.ts
@@ -52,7 +52,9 @@ export class KsqlQuery extends BaseQuery {
52
}
53
54
public escapeColumnName(name: string) {
55
- return `\`${name}\``;
+ // https://docs.confluent.io/platform/current/ksqldb/reference/sql/lexical-structure.html#ksqldb-lexical-structure-identifiers
56
+ // https://github.com/confluentinc/ksql/blob/84afdf1c2504844a15e02643f796288b8b069073/ksqldb-parser/src/main/antlr4/io/confluent/ksql/parser/SqlBase.g4#L378
57
+ return `\`${name.replaceAll('`', '``')}\``;
58
59
60
public castToString(sql: string) {
0 commit comments