Types: Add support for BINARY columns - #12
Conversation
There was a problem hiding this comment.
Keep in mind that CrateDB also supports BitString type, but I don't think that's what we want here, right?
Right. Here, it is about providing an emulation for a BLOB-type column. However, expanding type support to include the |
9941c5d to
2a34862
Compare
2f08b2a to
43c45fb
Compare
6ac0a22 to
d2c7613
Compare
8f01308 to
73bfe8e
Compare
2707929 to
de288ab
Compare
09c55fc to
9d1fc10
Compare
|
Hi @florinutz @matriv, Fixed: payloads were capped at ~24 KBThe previous patch compiled binary columns to a plain Binary columns are now created as Those clauses are emitted from Other changes
TestsI added new test and validated the tests by reverting the fix. Verified against CrateDB 6.4.3 and 6.5.0, on SQLAlchemy 1.3.24 and 2.0.50. (Unfortunately we don't have matrix to run tests for different CrateDB versions, I will tackle that on other PR.) Best, |
About
Improvements to be mainlined from https://github.com/pyveci/supertask/blob/19316e2/supertask/store/cratedb.py. The support for binary data types is being emulated by serializing them to STRING using base64. In that way, pickled data can be stored and retrieved without further ado.