This PR fixes an issue with queries that use inline tables, where they aren't parsed properly into the query AST. An example of such a query:
SELECT
tab.source
FROM
VALUES ('a'), ('b'), ('c') AS tab(source)
While other inline table queries were working, those with only one column per row, like the example above, were failing. This is due to the way the parsed structure would return a nested list in the cases where there was more than one column per row, but an unnested list for the example above. This change handles the special case.
Summary
This PR fixes an issue with queries that use inline tables, where they aren't parsed properly into the query AST. An example of such a query:
While other inline table queries were working, those with only one column per row, like the example above, were failing. This is due to the way the parsed structure would return a nested list in the cases where there was more than one column per row, but an unnested list for the example above. This change handles the special case.
Test Plan
make check
passesmake test
shows 100% unit test coverageDeployment Plan