You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by "Robert Johnson (Jira)" <ji...@apache.org> on 2021/09/03 14:48:00 UTC

[jira] [Created] (ZEPPELIN-5509) Zeppelin grid display converting strings that appear like scientific notation to numeric

Robert Johnson created ZEPPELIN-5509:
----------------------------------------

             Summary: Zeppelin grid display converting strings that appear like scientific notation to numeric
                 Key: ZEPPELIN-5509
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-5509
             Project: Zeppelin
          Issue Type: Bug
          Components: front-end, GUI, zeppelin-client, zeppelin-web
    Affects Versions: 0.8.2
         Environment: Amazon Elastic Map Reduce

Zeppelin 0.8.2
            Reporter: Robert Johnson


Zeppelin grid display is converting strings that appear to be scientific notation into a numeric. In this case, these are value codes, not numeric values. This is causing data to be displayed incorrectly. This also effects the data if exported from the result set.

 

 
{code:java}
%pyspark
data = [["Test1", "10E00"], ["Test2", "12E10"], ["Test3", "10E00000"], ["Test3", "10EAA"]]
columns = ["Name", "Value"]
df = spark.createDataFrame(data, columns)
df.show()
z.show(df){code}
 

 
{code:java}
+-----+--------+
| Name|   Value|
+-----+--------+
|Test1|   10E00|
|Test2|   10E10|
|Test3|10E00000|
|Test4|   10EAA|
+-----+--------+{code}
||Name||Value||
|Test1|10|
|Test2|120000000000|
|Test3|10|
|Test4|10EAA|

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)