This PR adds support for writing SELECT * in node queries.
During the Wildcard compile stage, it expands out SELECT * to all available columns on the table references. This may include DJ node columns, CTE columns, or subquery columns. These expanded columns are saved to a node revision's associated columns, but in the saved query, we keep the wildcard syntax (i.e., we always preserve what the user wrote).
During node updates, we also update these columns based on the parent nodes' columns, if any has changed.
Summary
This PR adds support for writing
SELECT *
in node queries.During the
Wildcard
compile stage, it expands outSELECT *
to all available columns on the table references. This may include DJ node columns, CTE columns, or subquery columns. These expanded columns are saved to a node revision's associatedcolumns
, but in the saved query, we keep the wildcard syntax (i.e., we always preserve what the user wrote).During node updates, we also update these columns based on the parent nodes' columns, if any has changed.
Test Plan
make check
passesmake test
shows 100% unit test coverageDeployment Plan