I just started playing around with QuestDB and this connector, and I hit a wall with storing string types: I can't find the way to specify in the model that a field is a varchar instead of a string.
According to the documentation string types are deprecated in favour of varchar, but apart from this using varchar types unlocks various benefits, one of which very important is to be able to use that field in the dedup key columns.
Right now I'm getting:
psycopg2.DatabaseError: deduplicate key column can only be fixed size column [column=device_id, type=STRING]
LINE 1: ..."ts") PARTITION BY DAY WAL DEDUP UPSERT KEYS("ts","device_id...
We can do this in future. In the meantime, deduplication is now supported for STRING, VARCHAR and BINARY types, so this should resolve the original problem.
Hi all,
I just started playing around with QuestDB and this connector, and I hit a wall with storing string types: I can't find the way to specify in the model that a field is a varchar instead of a string.
According to the documentation string types are deprecated in favour of varchar, but apart from this using varchar types unlocks various benefits, one of which very important is to be able to use that field in the dedup key columns.
Right now I'm getting:
This is my model:
Is there something I'm overlooking, or is this just not possible at the moment using class models over writing the CREATE TABLE by hand?
Thank you!