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
I have already fixed the issue . When the plan has APPEND state , PG includes Exprs in the targetColumnList. So , the 141 was actually a OPEXPR (int4mul) . To fix this , all we have to do is ,
REPLACE
List *targetColumnList =baserel->reltargetlist;
WITH
List *targetColumnList = pull_var_clause(baserel->reltargetlist, PVC_RECURSE_AGGREGATES, PVC_RECURSE_PLACEHOLDERS);
This issue is reported in cstore_fdw forum at https://groups.google.com/forum/#!topic/cstore-users/oqsWZHtlL74
Query 1:
Query 2:
Query 1 works fine but Query 2 returns NULL columns . This is because in "ColumnList" function has the following code snippet
Query 1 --- varattno is 1,2 for a,b
Query 2 --- varattno is 141,2 for a,b
So CStore doesn't consider Column "a" and hence the NULL values.
The text was updated successfully, but these errors were encountered: