VedantSawant616 commented on issue #18344:
URL: https://github.com/apache/datafusion/issues/18344#issuecomment-3460993619

   that’s a great point, @asolimando. datafusion does handle this a bit 
differently from the sql standard, possibly influenced by how  arrow represents 
 `datatype::null` as a real type, so when running `create table as select null 
as col`, datafusion assigns that null type instead of coercing or rejecting it. 
this makes the statement valid within its type system, but it also highlights 
the issue, the planner should recognize that `datatype::null` isn’t sortable 
and reject the `order by` during planning rather than at execution.


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