diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-12-19 11:01:36 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-12-19 11:01:36 +0000 |
commit | 948a422be120c069e48c63a8770fec7204307897 (patch) | |
tree | 80bc02d5e6cd3527409386aa1d706272bea54e6c /benchmarks | |
parent | Adding upstream version 20.1.0. (diff) | |
download | sqlglot-948a422be120c069e48c63a8770fec7204307897.tar.xz sqlglot-948a422be120c069e48c63a8770fec7204307897.zip |
Adding upstream version 20.3.0.upstream/20.3.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/bench.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/benchmarks/bench.py b/benchmarks/bench.py index 759ec91..10b04b5 100644 --- a/benchmarks/bench.py +++ b/benchmarks/bench.py @@ -160,7 +160,13 @@ LIMIT 100 def sqlglot_parse(sql): - sqlglot.parse(sql, error_level=sqlglot.ErrorLevel.IGNORE) + sqlglot.tokens.USE_RS_TOKENIZER = False + sqlglot.parse_one(sql, error_level=sqlglot.ErrorLevel.IGNORE) + + +def sqlglotrs_parse(sql): + sqlglot.tokens.USE_RS_TOKENIZER = True + sqlglot.parse_one(sql, error_level=sqlglot.ErrorLevel.IGNORE) def sqltree_parse(sql): @@ -199,6 +205,7 @@ def diff(row, column): libs = [ "sqlglot", + "sqlglotrs", #"sqlfluff", "sqltree", #"sqlparse", |