In the wren core rust version, we show all the physical columns when selecting a model with the wildcard expr. However, in the spec of Wren engine, the calculated field shouldn't be selected when using the wildcard expr. Because the calculated field will generate some join plans for a model, we want to make sure it only be used when the user selects it specifically.
Given a model A with 3 columns, c1, c2 and cf3. If cf3 is calculated. The select all SQL should only get c1 and c2.
SELECT * FROM A -> SELECT c1, c2 FROM A
If the user want to use cf3, they should select this column specifically.
Description
In the wren core rust version, we show all the physical columns when selecting a model with the wildcard expr. However, in the spec of Wren engine, the calculated field shouldn't be selected when using the wildcard expr. Because the calculated field will generate some join plans for a model, we want to make sure it only be used when the user selects it specifically.
Given a model A with 3 columns, c1, c2 and cf3. If
cf3
is calculated. The select all SQL should only get c1 and c2.If the user want to use
cf3
, they should select this column specifically.