sunchao commented on pull request #31284: URL: https://github.com/apache/spark/pull/31284#issuecomment-767933283
> Spark will read it as a long but write it as an int by downcasting it and calling the appropriate method to set the integer value I think this can be revised a bit to make it more understandable. I guess another approach is to initialize the `WriteColumnVector` to use `long` array instead of `int`. It will use more memory but perhaps performance will be better, and the code could be much simpler. ---------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
