Add utility support wrapping CrateDB's special table options#143
Add utility support wrapping CrateDB's special table options#143
Conversation
|
@amotl |
Response
This is probably about that issue? This patch's aim is different, and beyond the UX improvements we would like to tackle there. IdeaIt is to have a map for shorthand versions of special table options to be conveyed via URL query parameters, like this: export CRATEDB_SQLALCHEMY_URL='crate://crate@localhost:4200/testdrive/demo?if-exists=replace&partitioned-by=time&clustered-by="A"&replicas=0-2&shards=2&durability=async&max-columns=42&column-policy=dynamic'The patch is exploring this area to have a proper metadata knowledge data structure in Python, to be used for different purposes. Currently, it is targeted for the
I hear you. About the maintenance details, it does not necessarily have to be the source of truth here. In a future iteration, both the documentation and API wrappers would be able to derive the information from CrateDB itself, either its sources, or by inquiring at runtime? |
About
This patch adds relevant support code, mostly for providing it to downstream libraries and applications. The first candidate is CrateDB Toolkit's I/O subsystem.
References
ctk load tableinterface cratedb-toolkit#149table_kwargscontext manager to make pandas/Dask support CrateDB's special SQL DDL options #139See also
__table_args__syntax #142