INSERT
with named columns errors with nested structs and arrays
#3231
Labels
INSERT
with named columns errors with nested structs and arrays
#3231
Our SQL supports setting only a specific set of columns of a (nested) record, provided this is not prohibited e.g. due to causing constraint violation such as missing (parts of) the primary key constituents, i.e. this works as expected:
However, it is not possible to do this when we have nested arrays and structs:
As it throws the following error:
Arguably, the above syntax can be ambiguous, or at least, it does not align exactly with the row we're trying to set. Perhaps we need to change the aliasing syntax to reflect the fact that
A2
is actually an array, but I am not sure.The text was updated successfully, but these errors were encountered: