This is an automated email from the ASF dual-hosted git repository.
vogievetsky pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new 516531dd31f account for merge queries (#17679)
516531dd31f is described below
commit 516531dd31f60931f6921c443969b288a21eb4d6
Author: Vadim Ogievetsky <[email protected]>
AuthorDate: Fri Jan 31 16:35:41 2025 -0800
account for merge queries (#17679)
---
web-console/lib/keywords.ts | 3 +++
web-console/src/druid-models/workbench-query/workbench-query.ts | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/web-console/lib/keywords.ts b/web-console/lib/keywords.ts
index 5985ae0a6aa..0305f7f7de3 100644
--- a/web-console/lib/keywords.ts
+++ b/web-console/lib/keywords.ts
@@ -60,6 +60,7 @@ export const SQL_KEYWORDS = [
'TIME',
'INSERT INTO',
'REPLACE INTO',
+ 'MERGE INTO',
'OVERWRITE',
'RETURNING',
'OVER',
@@ -73,6 +74,8 @@ export const SQL_KEYWORDS = [
'EXTEND',
'PIVOT',
'UNPIVOT',
+ 'MATCHED',
+ 'UPDATE SET',
];
export const SQL_EXPRESSION_PARTS = [
diff --git a/web-console/src/druid-models/workbench-query/workbench-query.ts
b/web-console/src/druid-models/workbench-query/workbench-query.ts
index 9b1ed42b516..6ac6bba3c2a 100644
--- a/web-console/src/druid-models/workbench-query/workbench-query.ts
+++ b/web-console/src/druid-models/workbench-query/workbench-query.ts
@@ -404,7 +404,7 @@ export class WorkbenchQuery {
if (this.isJsonLike()) return false;
- return /(?:INSERT|REPLACE)\s+INTO/i.test(queryString);
+ return /(?:INSERT|REPLACE|MERGE)\s+INTO/i.test(queryString);
}
public toggleUnlimited(): WorkbenchQuery {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]