Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-3234

z.show() compatibility with previous release

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7.3, 0.8.0
    • 0.8.0
    • None
    • None

    Description

      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]
       

      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()

       
       

      Attachments

        Issue Links

          Activity

            People

              zjffdu Jeff Zhang
              Tagar Ruslan Dautkhanov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: