cloud-fan commented on code in PR #38800:
URL: https://github.com/apache/spark/pull/38800#discussion_r1033281998


##########
connector/connect/src/main/protobuf/spark/connect/expressions.proto:
##########
@@ -40,37 +40,34 @@ message Expression {
 
   message Literal {
     oneof literal_type {

Review Comment:
   In catalyst, `Literal` is consist of value and type. The benefit is, there 
aren't many physical values (timestamp and timestamp ntz are both int64). When 
we need to add a new data type with existing physical values (e.g. char are 
varchar), we don't need to update `Literal`.
   
   This is not a design decision made by this PR, so I won't block this PR for 
this reason.



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