Take the model
SELECT
field1
, table1.field2
, field3
FROM table1
Since the reference to table1 is being replaced by (SELECT "some string" as field2, 42 as field2 and True as field3), if we don't alias that select literal with the name of the reference (ie. AS table1), the query will fail to execute. This could be solved by simple adding that bit to the select literal
Take the model
Since the reference to
table1is being replaced by(SELECT "some string" as field2, 42 as field2 and True as field3), if we don't alias that select literal with the name of the reference (ie.AS table1), the query will fail to execute. This could be solved by simple adding that bit to the select literal