2010YOUY01 opened a new issue, #12012:
URL: https://github.com/apache/datafusion/issues/12012

   ### Describe the bug
   
   Reproducer in datafusion-cli
   ```
   DataFusion CLI v41.0.0
   > create table t1(v1 double);
   0 row(s) fetched.
   Elapsed 0.078 seconds.
   
   > select approx_percentile_cont(v1,v1) from t1;
   Internal error: PhysicalExpr Column references column 'v1' at index 0 
(zero-based) but input schema only has 0 columns: [].
   This was likely caused by a bug in DataFusion's code and we would welcome 
that you file an bug report in our issue tracker
   ```
   
   I think this query is invalid, the second argument have to be a literal 
number instead of column reference, to make this query meaningful.
   However an internal error should not be thrown, it always represent a 
potential bug in DataFusion.
   So we have to further investigate if it's a actual bug or misused internal 
error
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   Found by SQLancer https://github.com/apache/datafusion/issues/11030


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to