From 75054f7adb29c0b295f9e0d9994c90badd2a994c Mon Sep 17 00:00:00 2001 From: Aolin Date: Mon, 16 Oct 2023 13:28:19 +0800 Subject: [PATCH 1/2] keywords: add TPCH_10 and update the check-keywords.sh script Signed-off-by: Aolin --- keywords.md | 1 + scripts/check-keywords.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/keywords.md b/keywords.md index a8eb516eb8a5d..7d0097576f0a2 100644 --- a/keywords.md +++ b/keywords.md @@ -687,6 +687,7 @@ The following list shows the keywords in TiDB. Reserved keywords are marked with - TOKEN_ISSUER - TOPN (R) - TPCC +- TPCH_10 - TRACE - TRADITIONAL - TRAILING (R) diff --git a/scripts/check-keywords.sh b/scripts/check-keywords.sh index 52e7b2ea9ad15..6df1183902982 100755 --- a/scripts/check-keywords.sh +++ b/scripts/check-keywords.sh @@ -3,7 +3,7 @@ import re import sys from pathlib import Path -parser = Path("../tidb/parser/parser.y") +parser = Path("../tidb/pkg/parser/parser.y") if not parser.exists(): sys.exit(f"{parser} doesn't exist") From 78def1ab11bf705e9df689ec946904bc3dada857 Mon Sep 17 00:00:00 2001 From: Aolin Date: Mon, 16 Oct 2023 14:17:32 +0800 Subject: [PATCH 2/2] Discard changes to scripts/check-keywords.sh --- scripts/check-keywords.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check-keywords.sh b/scripts/check-keywords.sh index 6df1183902982..52e7b2ea9ad15 100755 --- a/scripts/check-keywords.sh +++ b/scripts/check-keywords.sh @@ -3,7 +3,7 @@ import re import sys from pathlib import Path -parser = Path("../tidb/pkg/parser/parser.y") +parser = Path("../tidb/parser/parser.y") if not parser.exists(): sys.exit(f"{parser} doesn't exist")