Skip to content

Support output_format="DataStore" across query / session / streaming APIs#68

Merged
wudidapaopao merged 3 commits into
chdb-io:mainfrom
wudidapaopao:support_datastore_format
May 27, 2026
Merged

Support output_format="DataStore" across query / session / streaming APIs#68
wudidapaopao merged 3 commits into
chdb-io:mainfrom
wudidapaopao:support_datastore_format

Conversation

@wudidapaopao
Copy link
Copy Markdown
Collaborator

Closes #67

Summary

  • chdb.query, Connection.query, Session.query accept output_format="DataStore" (case-insensitive) and return a chdb.datastore.DataStore.
  • Connection.send_query / Session.send_query stream DataStore chunks.
  • Raises ImportError with an install hint when the chdb package is missing.

Test plan

  • python3 -m unittest tests.test_datastore_format -v
  • Existing test_streaming_dataframe / test_basic still pass.

@wudidapaopao wudidapaopao force-pushed the support_datastore_format branch from cea6922 to 011a355 Compare May 26, 2026 13:02
chdb-core-lite strips registration of toDecimal128/256 to fit the 50MB
wheel budget. Two pre-existing tests inadvertently triggered the missing
path: test_decimal_types_match_serial calls toDecimal128 directly, and
test_nullable_decimal CASTs to Decimal(38, 10) which routes through
toDecimal128 internally. Add @skipIf(_LITE) following the established
pattern (test_dataframe_column_types_1.py, test_func_udf_types.py, ...).
@wudidapaopao wudidapaopao merged commit d9703dc into chdb-io:main May 27, 2026
7 of 8 checks passed
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.

Support output_format="DataStore" in query / session / streaming APIs

1 participant