-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
$ echo '{ select: { fields: [1, {}] }}' | sqlsonnet -
INFO sqlsonnet: Converting Jsonnet file - to SQL
{
"select": {
"fields": [
1,
{ }
]
}
}
Error: × Failed to interpret query from JSON: data did not match any variant of untagged enum Expr at line 6 column 7
╭─[source.json:6:7]
1 │ {
2 │ "select": {
3 │ "fields": [
4 │ 1,
5 │ { }
6 │ ]
· ▲
7 │ }
8 │ }
╰────This is very suboptimal, as the error points to the end of the fields list without even localizing the invalid field.
Relevant:
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request