[ https://issues.apache.org/jira/browse/HAWQ-973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kavinder Dhaliwal updated HAWQ-973: ----------------------------------- Description: "add_projection_desc_httpheader()" extracts the indices of columns to project from pi_varNumbers, but calculates the length based on pi_targetList. This is similar to how ExecVariableList handles projection. However there are cases where length(pi_targetList) >0 and length(pi_varNumbers) == 0, so a condition on pi_varList needs to be added before invoking add_projection_desc_httpheader as is done in ExecProject. (was: {code} add_projection_desc_httpheader {code} extracts the indices of columns to project from pi_varNumbers, but calculates the length based on pi_targetList. This is similar to how ExecVariableList handles projection. However there are cases where length(pi_targetList) >0 and length(pi_varNumbers) == 0, so a condition on pi_varList needs to be added before invoking add_projection_desc_httpheader as is done in ExecProject.) > Check pi_varList in pxfheaders before setting headers > ----------------------------------------------------- > > Key: HAWQ-973 > URL: https://issues.apache.org/jira/browse/HAWQ-973 > Project: Apache HAWQ > Issue Type: Bug > Components: PXF > Reporter: Kavinder Dhaliwal > Assignee: Kavinder Dhaliwal > > "add_projection_desc_httpheader()" extracts the indices of columns to project > from pi_varNumbers, but calculates the length based on pi_targetList. This is > similar to how ExecVariableList handles projection. However there are cases > where length(pi_targetList) >0 and length(pi_varNumbers) == 0, so a condition > on pi_varList needs to be added before invoking > add_projection_desc_httpheader as is done in ExecProject. -- This message was sent by Atlassian JIRA (v6.3.4#6332)