Github user priyankagargnitk commented on the issue:

    https://github.com/apache/spark/pull/15609
  
    Actually our use case is little different, we are not invoking it with the 
Select queries.. We are using JS to let user type expressions and then we have 
created out own layer on top of spark that converts this JS to Spark 
expressions.. So if user writes an expression that returns date in true branch 
and timestamp in false branch.. Then the IF expression fails... because it 
internally getting mapped to If(Literal.create(true, BooleanType), 
Literal.create(identity(1), DateType), Literal.create(identity(2L), 
TimestampType)) , Which fails.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to