You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT id as`id`,
junc_col as`junc_col`,
FROM base
However it fails to add the junc_col to the shape definition.
This means that when it generates the batch SQL, it has no column data, so it attempts to find WHERE junc_col IN (NULL).
I'm not knowledgable enough with the codebase to be sure, but the problem is either:
it's not adding it to the SQL AST, which means that the shape definition function doesn't know to pick it up.
this would make sense if it wasn't dumped into the base table SQL.
there is an issue with the _defineShape function; it doesn't look into batched tables to determine if if it needs extra columns.
I'm leaning toward the latter as the bug - it seems to be a mismatch between the logic in the SQL stringifier and the shape definer.
The text was updated successfully, but these errors were encountered:
creating a batched junction as follows:
causes the base SQL to be generated correctly:
However it fails to add the
junc_col
to the shape definition.This means that when it generates the batch SQL, it has no column data, so it attempts to find
WHERE junc_col IN (NULL)
.I'm not knowledgable enough with the codebase to be sure, but the problem is either:
_defineShape
function; it doesn't look into batched tables to determine if if it needs extra columns.I'm leaning toward the latter as the bug - it seems to be a mismatch between the logic in the SQL stringifier and the shape definer.
The text was updated successfully, but these errors were encountered: