diff --git a/.github/actions/test_stateless_cluster_linux/action.yml b/.github/actions/test_stateless_cluster_linux/action.yml
index 44bbe08c8f013..e424338a40077 100644
--- a/.github/actions/test_stateless_cluster_linux/action.yml
+++ b/.github/actions/test_stateless_cluster_linux/action.yml
@@ -28,6 +28,11 @@ runs:
run: |
chmod +x ./target/debug/databend-*
+ - name: Install python dependences
+ shell: bash
+ run: |
+ pip3 install --user boto3 "moto[all]" yapf shfmt-py mysql-connector pymysql sqlalchemy clickhouse_driver
+
- name: Run Stateless Tests with Cluster mode
shell: bash
run: |
diff --git a/.github/actions/test_stateless_cluster_macos/action.yml b/.github/actions/test_stateless_cluster_macos/action.yml
index 0ca0769d03b43..0682c67347343 100644
--- a/.github/actions/test_stateless_cluster_macos/action.yml
+++ b/.github/actions/test_stateless_cluster_macos/action.yml
@@ -33,7 +33,7 @@ runs:
- name: Install python dependences
shell: bash
run: |
- pip3 install --user boto3 "moto[all]" yapf shfmt-py mysql-connector pymysql sqlalchemy
+ pip3 install --user boto3 "moto[all]" yapf shfmt-py mysql-connector pymysql sqlalchemy clickhouse_driver
- name: Run Stateless Tests with Cluster mode
shell: bash
diff --git a/.github/actions/test_stateless_standalone_linux/action.yml b/.github/actions/test_stateless_standalone_linux/action.yml
index a7e461a14b55e..4d9e6c879155f 100644
--- a/.github/actions/test_stateless_standalone_linux/action.yml
+++ b/.github/actions/test_stateless_standalone_linux/action.yml
@@ -28,6 +28,11 @@ runs:
run: |
chmod +x ./target/debug/databend-*
+ - name: Install python dependences
+ shell: bash
+ run: |
+ pip3 install --user boto3 "moto[all]" yapf shfmt-py mysql-connector pymysql sqlalchemy clickhouse_driver
+
- name: Run Stateless Tests with Standalone mode, with embedded meta-store
shell: bash
run: |
diff --git a/.github/actions/test_stateless_standalone_macos/action.yml b/.github/actions/test_stateless_standalone_macos/action.yml
index 053e74e930c4e..7831fd811f3c5 100644
--- a/.github/actions/test_stateless_standalone_macos/action.yml
+++ b/.github/actions/test_stateless_standalone_macos/action.yml
@@ -28,7 +28,7 @@ runs:
- name: Install python dependences
shell: bash
run: |
- pip3 install --user boto3 "moto[all]" yapf shfmt-py mysql-connector pymysql sqlalchemy
+ pip3 install --user boto3 "moto[all]" yapf shfmt-py mysql-connector pymysql sqlalchemy clickhouse_driver
- name: Set up file as executable
shell: bash
diff --git a/Cargo.lock b/Cargo.lock
index 3f42e98e5b313..9a83fb818be3b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5690,7 +5690,7 @@ dependencies = [
[[package]]
name = "sqlparser"
version = "0.13.1-alpha.0"
-source = "git+https://github.com/datafuse-extras/sqlparser-rs?rev=f88fb32#f88fb320e8a1534b94e575fc6f1bcf44b30c6eaa"
+source = "git+https://github.com/datafuse-extras/sqlparser-rs?rev=818c0f9#818c0f96a2dcc81537fbfe6c6ee9584600ebcb44"
dependencies = [
"hashbrown 0.12.0",
"log",
diff --git a/common/ast/Cargo.toml b/common/ast/Cargo.toml
index e26d73143e8f3..16901f52f5a31 100644
--- a/common/ast/Cargo.toml
+++ b/common/ast/Cargo.toml
@@ -19,7 +19,7 @@ common-functions = { path = "../functions" }
# TODO (andylokandy): Use the version from crates.io once
# https://github.com/brendanzab/codespan/pull/331 is released.
codespan-reporting = { git = "https://github.com/brendanzab/codespan", rev = "c84116f5" }
-sqlparser = { git = "https://github.com/datafuse-extras/sqlparser-rs", rev = "f88fb32" }
+sqlparser = { git = "https://github.com/datafuse-extras/sqlparser-rs", rev = "818c0f9" }
# Crates.io dependencies
async-trait = "0.1.53"
diff --git a/common/exception/Cargo.toml b/common/exception/Cargo.toml
index e4660caaccdec..617de2c31aa18 100644
--- a/common/exception/Cargo.toml
+++ b/common/exception/Cargo.toml
@@ -26,4 +26,4 @@ tonic = "=0.6.2"
# Github dependencies
bincode = { git = "https://github.com/datafuse-extras/bincode", rev = "fd3f9ff" }
-sqlparser = { git = "https://github.com/datafuse-extras/sqlparser-rs", rev = "f88fb32" }
+sqlparser = { git = "https://github.com/datafuse-extras/sqlparser-rs", rev = "818c0f9" }
diff --git a/common/functions/Cargo.toml b/common/functions/Cargo.toml
index fab00ebb9e904..9b5c749afc92a 100644
--- a/common/functions/Cargo.toml
+++ b/common/functions/Cargo.toml
@@ -44,7 +44,7 @@ serde_json = "1.0.79"
sha1 = "0.10.1"
sha2 = "0.10.2"
simdutf8 = "0.1.4"
-sqlparser = { git = "https://github.com/datafuse-extras/sqlparser-rs", rev = "f88fb32" }
+sqlparser = { git = "https://github.com/datafuse-extras/sqlparser-rs", rev = "818c0f9" }
strength_reduce = "0.2.3"
twox-hash = "1.6.2"
uuid = { version = "0.8.2", features = ["v4"] }
diff --git a/query/Cargo.toml b/query/Cargo.toml
index 56c2e848b11b0..5b9ed6d6c3dac 100644
--- a/query/Cargo.toml
+++ b/query/Cargo.toml
@@ -54,7 +54,7 @@ common-tracing = { path = "../common/tracing" }
bincode = { git = "https://github.com/datafuse-extras/bincode", rev = "fd3f9ff" }
opensrv-clickhouse = { git = "https://github.com/datafuselabs/opensrv", rev = "9690be9", package = "opensrv-clickhouse" }
opensrv-mysql = { git = "https://github.com/datafuselabs/opensrv", rev = "967477f1", package = "opensrv-mysql" }
-sqlparser = { git = "https://github.com/datafuse-extras/sqlparser-rs", rev = "f88fb32" }
+sqlparser = { git = "https://github.com/datafuse-extras/sqlparser-rs", rev = "818c0f9" }
# Crates.io dependencies
ahash = "0.7.6"
diff --git a/query/src/servers/http/clickhouse_handler.rs b/query/src/servers/http/clickhouse_handler.rs
index d247656b7371e..29610e7ffc56e 100644
--- a/query/src/servers/http/clickhouse_handler.rs
+++ b/query/src/servers/http/clickhouse_handler.rs
@@ -127,8 +127,11 @@ pub async fn clickhouse_handler_get(
.map_err(InternalServerError)
}
-fn try_parse_insert_formatted(sql: &str) -> Result