Ruslan Dautkhanov created ZEPPELIN-3234:
-------------------------------------------
Summary: z.show() compatibility with previous release
Key: ZEPPELIN-3234
URL: https://issues.apache.org/jira/browse/ZEPPELIN-3234
Project: Zeppelin
Issue Type: Bug
Affects Versions: 0.7.3, 0.8.0
Reporter: Ruslan Dautkhanov
We've noticed two major issues with z.show() after upgrading Zeppelin
1)
z.show(df) used to work directly on spark dataframe object,
now it produces TypeError: object of type 'DataFrame' has no len()
Full exception stack in [1].
2)
We tried disabling ipython and it seems to be a workaround.
I there is a way to have compatibility with previous Zeppelin release on
z.show()
without disabling ipython altogether?
[1]
{quote}TypeErrorTraceback (most recent call last)
<ipython-input-4-47beac9208ab> in <module>()
----> 1 z.show(spark.sql('select * from disc_mrt.unified_fact'))
<ipython-input-1-b24458af29e1> in show(self, p, **kwargs)
73 # `isinstance(p, DataFrame)` would req `import pandas.core.frame.DataFrame`
74 # and so a dependency on pandas
---> 75 self.show_dataframe(p, **kwargs)
76 elif hasattr(p, '__call__'):
77 p() #error reporting <ipython-input-1-b24458af29e1> in show_dataframe(self,
df, show_index, **kwargs)
80 """Pretty prints DF using Table Display System 81 """ ---> 82 limit =
len(df) > self.max_result 83 header_buf = StringIO("")
84 if show_index: TypeError: object of type 'DataFrame' has no len()
{quote}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)