jayzhan211 commented on issue #10274:
URL: https://github.com/apache/datafusion/issues/10274#issuecomment-2087726836

   > > Expect display is something like
   > 
   > I agree @jayzhan211 -- sorry for misreading this. I agree that If the user 
ran
   > 
   > ```sql
   > select CAST(2 AS Float)`
   > ```
   > 
   > seeing this makes sense
   > 
   > ```
   > +----------+
   > | Cast(Int64(2) as Float)|
   > +----------+
   > | 2.0 |
   > +----------+
   > ```
   > 
   > However, if the user wrote something like this
   > 
   > ```sql
   > select col = 2
   > ```
   > 
   > I would expect the result to be something like (even if col was a float 
column and coercsion applied casts)
   > 
   > ```
   > +----------+
   > | col = Int64(2)|
   > +----------+
   > | 2.0 |
   > +----------+
   > ```
   
   It looks good to me because we can infer the type from `col`.


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