From 3332ff6b3dfc93158598ef0e28518940beb33cb9 Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Thu, 4 Jan 2024 21:20:13 +0900 Subject: [PATCH] Remove redundant ? from SHOW COLUMNS in SqlBase.g4 --- .../src/main/antlr4/io/trino/grammar/sql/SqlBase.g4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/trino-grammar/src/main/antlr4/io/trino/grammar/sql/SqlBase.g4 b/core/trino-grammar/src/main/antlr4/io/trino/grammar/sql/SqlBase.g4 index c13530d62a80..cea6360647f3 100644 --- a/core/trino-grammar/src/main/antlr4/io/trino/grammar/sql/SqlBase.g4 +++ b/core/trino-grammar/src/main/antlr4/io/trino/grammar/sql/SqlBase.g4 @@ -160,7 +160,7 @@ statement (LIKE pattern=string (ESCAPE escape=string)?)? #showSchemas | SHOW CATALOGS (LIKE pattern=string (ESCAPE escape=string)?)? #showCatalogs - | SHOW COLUMNS (FROM | IN) qualifiedName? + | SHOW COLUMNS (FROM | IN) qualifiedName (LIKE pattern=string (ESCAPE escape=string)?)? #showColumns | SHOW STATS FOR qualifiedName #showStats | SHOW STATS FOR '(' rootQuery ')' #showStatsForQuery