Yikf commented on PR #40699:
URL: https://github.com/apache/spark/pull/40699#issuecomment-1517330580

   > BTW, I think PR description should not say it's for consistency with 
spark-sql shell. `df.show` displays top-level null value as `NULL`, but inner 
field null value as `null`. This is the major motivation of the fix.
   
   Actually, previously, the top-level is consistent with the inner null 
display with `null`. This PR mainly thinks that the mainstream database uses 
`NULL` instead of `null` when displaying null, and `NULL` is a better nice 
string representation.
   
   If it's affecting something else, I think we should look at it again, sorry 
~ : )
   
   
   > For example, we don't display a table the same way in those REPLs.
   
   BTW, For apache spark, spark-sql and spark-shell are two different REPLs, 
but they are only user interaction interfaces. Shouldn't the displayed content 
be the same? At least in terms of the result set.


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