Bulk insert with nullable decimals #547
Unanswered
megasuperlexa
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Turns out Clickhouse might return columns in unpredictable order on schema request in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am inserting into a table which has the following column
balance_after Nullable(Decimal(18, 8))
However when I am doing bulk insert, the exception is thrown
which is I guess because
ClickHouse.Client.Types.DecimalType
does not support converting nulls into decimal.Is this a bug? is there a different type I can enforce for this column in the library? can I somehow trick
ClickHouseBulkCopy
to not assume column types from the database like it does currently but to treat values asstring
for example?Beta Was this translation helpful? Give feedback.
All reactions