pengzhiwei2018 commented on pull request #2334:
URL: https://github.com/apache/hudi/pull/2334#issuecomment-751355407


   > @pengzhiwei2018 : sorry I am not following the problem here. Can you throw 
some light.
   > Schema evolution is throwing an exception w/ Hudi, i.e a field's data type 
evolved to a compatible data type and hudi fails to accommodate it? is that the 
problem.
   > If yes, can you check #2350. there is a bug in schema compatibility check 
and the patch should fix it. If not, can you elaborate what exactly is the 
problem.
   > For eg: use-case given at #2063 succeeds with #2350
   
   Hi @nsivabalan, When I write a `long` value  to the `double` type field in 
the table, It can pass the `TableSchemaResolver.isSchemaCompatible`,However it 
failed in the write stage. 
   I found the problem is that the schema (e.g `double`) used in write & read 
table are the same with the input schema(e.g. `long`). I fixed this problem by 
distinguishing the two schemas.


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to