Allow for scalar subquery in `INSERT` `VALUES` position
FiV0 opened this issue · comments
Finn Völkel commented
The second line currently doesn't work.
INSERT INTO docs (xt$id, foo) VALUES (1, 'bar')
INSERT INTO docs (xt$id, foo) VALUES((SELECT MAX(docs.xt$id) + 1 FROM docs), 'toto')
and results in
Error: xtdb.IllegalArgumentException
Error Planning SQL: No matching clause: :row_subquery