aglinxinyuan commented on PR #8488:
URL: https://github.com/apache/texera/pull/8488#issuecomment-5771364083

   > > It is supposed to fail. By design, the Sort operator cannot process an 
empty table. If it needs to support empty tables, it should be modified to 
accept an empty table without a schema. A schema belongs to a table containing 
data; an empty table should not have one.
   > 
   > Why can't an empty table have a schema?
   
   I see an empty table as analogous to `null`: can a `null` value have a data 
type? If you instead treat an empty table like an empty string, then it could 
have a schema. However, supporting an empty string instead of `null` often 
feels somewhat hacky.
   
   In short, there may be valid arguments both for and against allowing an 
empty table to have a schema. Since this would be an important semantic change, 
I think it should be decided through a broader discussion rather than as part 
of this specific fix.


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

Reply via email to