Details
-
Bug
-
Status: Open
-
Critical
-
Resolution: Unresolved
-
0.8.0
-
None
-
None
Description
in spark.sql we 're getting wrong (rounded) display for relatively large numbers,
for example:
%spark.sql
select '2176329053680287235'
displays:
2176329053680287200
that is critical as all our IDs are wrong.
we tracked the source of it to:
https://github.com/apache/zeppelin/blob/master/zeppelin-web/src/app/tabledata/tabledata.js#L63
if (!isNaN(valueOfCol = parseFloat(col)) && isFinite(col)) ..
because the number is bigger than max float, it should be like it was in:
somthing like:
let valueOfCol = Number(col); if (valueOfCol > Number.MAX_SAFE_INTEGER || valueOfCol < Number.MIN_SAFE_INTEGER) { valueOfCol = col; } cols.push(valueOfCol);
Attachments
Attachments
Issue Links
- links to