bulk_insert and nullable arguments #1123
Answered
by
zzzeek
lafrech
asked this question in
Usage Questions
-
I'm using op.bulk_insert(
my_table,
[
{
"name": "Name 1",
},
{
"name": "Name 2",
},
{
"name": "Name 3",
"optional": "something",
},
],
# multiinsert=False,
) I realized that the optional field was not set, silently ignored in fact, unless I used multiinsert. I don't know if this is intended. It might be obvious to someone aware of the internals but I found it surprising. |
Beta Was this translation helpful? Give feedback.
Answered by
zzzeek
Nov 18, 2022
Replies: 1 comment
-
we could in theory check every entry that the keys are a subset of those keys in the first entry (since that's the one that matters). We don't have development resources for "nice to haves" right now but feel free to open an issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lafrech
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
we could in theory check every entry that the keys are a subset of those keys in the first entry (since that's the one that matters). We don't have development resources for "nice to haves" right now but feel free to open an issue.