You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my dataset, there is a shape_area field defined as follows:
During parsing, I found that the data values become excessively large. For example:
The original value 173.24927660400 is parsed as 1.73249276604E24.
After investigating the code, I found an issue in the ParquetPrimitiveConverter class on line 102, where the scale is negated:
int scale = -decimal.getScale();
When I modified the code to use int scale = decimal.getScale();, the parsed data values were correct.
I would like to understand if there is any specific reason for negating the scale (-decimal.getScale())? Does it serve any special purpose, or is it a mistake?
The text was updated successfully, but these errors were encountered:
In my dataset, there is a shape_area field defined as follows:
During parsing, I found that the data values become excessively large. For example:
The original value 173.24927660400 is parsed as 1.73249276604E24.
After investigating the code, I found an issue in the ParquetPrimitiveConverter class on line 102, where the scale is negated:
int scale = -decimal.getScale();
When I modified the code to use int scale = decimal.getScale();, the parsed data values were correct.
I would like to understand if there is any specific reason for negating the scale (-decimal.getScale())? Does it serve any special purpose, or is it a mistake?
The text was updated successfully, but these errors were encountered: