maruko-code commented on PR #4009:
URL: 
https://github.com/apache/incubator-seatunnel/pull/4009#issuecomment-1423761965

   > > update 
org.apache.seatunnel.connectors.seatunnel.maxcompute.util.MaxcomputeTypeMapper#resolveObject
   > > ```java
   > > switch (fieldType.getSqlType()) {
   > > case DATE:
   > >      return ((Date) field).toInstant()
   > >          .atZone(ZoneId.systemDefault())
   > >          .toLocalDate()
   > >          .toEpochDay();
   > > ```
   > > 
   > > 
   > >     
   > >       
   > >     
   > > 
   > >       
   > >     
   > > 
   > >     
   > >   
   > > @maruko-code revert other update
   > > #2052
   > 
   > spark handles date as int
   > 
   > 
https://github.com/apache/incubator-seatunnel/blob/dev/seatunnel-translation/seatunnel-translation-spark/seatunnel-translation-spark-2.4/src/main/java/org/apache/seatunnel/translation/spark/serialization/InternalRowConverter.java#L189
   
   sorry I am not geting the point, the connector-maxcompute can read the 
source which has date type filed is not enough?


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