Github user NiharS commented on the issue:

    https://github.com/apache/spark/pull/21807
  
    New to SQL, but it seems like the query
    
    `SELECT 1 LIMIT CAST('1' AS INT)`
    
    should work, right? I tried both on Spark without to your change and the 
W3Schools SQL tester and it's accepted in both, but I tried on your PR and it 
hits the new AnalysisException.
    
    If this is indeed an issue, it can be avoided by having the case be 
`e.eval() == null` instead of `e.nullable`, although there's some duplicated 
work since the previous case also calls `e.eval()`


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to