Skip to content

Quote identifiers on Arrow insert table names - #1026

Open
sankalpsthakur wants to merge 2 commits into
ClickHouse:mainfrom
sankalpsthakur:fix/1014-quote-arrow-insert
Open

Quote identifiers on Arrow insert table names#1026
sankalpsthakur wants to merge 2 commits into
ClickHouse:mainfrom
sankalpsthakur:fix/1014-quote-arrow-insert

Conversation

@sankalpsthakur

Copy link
Copy Markdown
Contributor

Summary

Quote database/table identifiers on Arrow insert paths the same way insert() does via quote_identifier(), so names that need backquotes work.

Validation

  • pytest tests/unit_tests/test_driver/test_httpclient.py::TestInsertArrowTransportSettings tests/unit_tests/test_driver/test_httpclient.py::TestInsertArrowTableQuoting tests/unit_tests/test_backend_orchestration.py tests/unit_tests/test_driver/test_binding.py -q --tb=short -n 0
    • 147 passed
  • pytest tests/unit_tests/test_driver -q
    • 786 passed, 67 skipped, 1 failed (test_ctypes.py expects compiled Cython extensions; local env used CLICKHOUSE_CONNECT_SKIP_CYTHON=1), 30 errors (TestQuery setup connects to localhost:8123; other errors from missing numpy). No live ClickHouse server in this run. Integration tests not run.

Fixes #1014

AI/LLM disclosure

  • AI coding tools (including Grok and/or Codex agent-assisted editing) were used to help draft or modify code and this PR description.
  • I reviewed the complete change, understand the reasoning, and ran the reported local tests before submitting.
  • This submission is original work of authorship under the project CLA / contributor terms; AI output was not pasted unreviewed.

insert_arrow concatenated raw database.table, so hyphenated names
failed while Client.insert() already used quote_identifier().

Fixes ClickHouse#1014
Signed-off-by: Sankalp Thakur <sankalphimself@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

insert_arrow/insert_df_arrow concatenate the raw table and database names — names needing backquotes fail

1 participant