andygrove opened a new issue, #4794:
URL: https://github.com/apache/arrow-datafusion/issues/4794

   **Describe the bug**
   
   Creating a physical plan for q10 fails with:
   
   ```
   Error: SchemaError(FieldNotFound { field: Column { relation: 
Some("web_sales"), name: "ws_bill_customer_sk" }, valid_fields: Some([Column { 
relation: Some("customer"), name: "c_customer_sk" }, Column { relation: 
Some("customer"), name: "c_current_cdemo_sk" }, Column { relation: 
Some("customer"), name: "c_current_addr_sk" }]) })
   ```
   
   Here is the part of the logical plan that contains references to 
`ws_bill_customer_sk`. 
   
   ```
                     LeftSemi Join: web_sales.ws_bill_customer_sk = 
c.c_customer_sk [c_customer_sk:Int32, c_current_cdemo_sk:Int32, 
c_current_addr_sk:Int32]
                       TableScan: customer projection=[c_customer_sk, 
c_current_cdemo_sk, c_current_addr_sk] [c_customer_sk:Int32, 
c_current_cdemo_sk:Int32, c_current_addr_sk:Int32]
                       Projection: web_sales.ws_bill_customer_sk 
[ws_bill_customer_sk:Int32]
                         Inner Join: web_sales.ws_sold_date_sk = 
date_dim.d_date_sk [ws_sold_date_sk:Int32, ws_bill_customer_sk:Int32, 
d_date_sk:Int32]
                           TableScan: web_sales projection=[ws_sold_date_sk, 
ws_bill_customer_sk] [ws_sold_date_sk:Int32, ws_bill_customer_sk:Int32]
   ```
   
   **To Reproduce**
   Unigore test `tpcds_physical_q10`.
   
   **Expected behavior**
   A clear and concise description of what you expected to happen.
   
   **Additional context**
   Add any other context about the problem here.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to