CybercentreCanada / jupyterlab-sql-editor

A JupyterLab extension providing, SQL formatter, auto-completion, syntax highlighting, Spark SQL and Trino
BSD 3-Clause "New" or "Revised" License
83 stars 13 forks source link

Casting Spark results to string for json display #93

Closed cccs-nik closed 1 year ago

cccs-nik commented 1 year ago

Reorganized the code a tiny bit. Now casting the spark dataframe results to string before converting to a json string for the display of data in a json structure. Avoids longs getting rounded and other potential future issues when converting to json at the cost of casting the results to string before displaying them.