Edwin Shin created ZEPPELIN-779: ----------------------------------- Summary: Error creating dynamic select form in Python Key: ZEPPELIN-779 URL: https://issues.apache.org/jira/browse/ZEPPELIN-779 Project: Zeppelin Issue Type: Bug Affects Versions: 0.6.0 Environment: OS X 10.11, python 3.5.1, Spark 1.6.0 Reporter: Edwin Shin Priority: Minor
The [documentation|https://zeppelin.incubator.apache.org/docs/0.6.0-incubating-SNAPSHOT/manual/dynamicform.html] and ZEPPELIN-428 suggest that the following should render a select form: {code} %pyspark print("Hello "+z.select("day", [("1","mon"), ("2","tue"), ("3","wed"), ("4","thurs"), ("5","fri"), ("6","sat"), ("7","sun")])) {code} But instead, it yields: {code} Traceback (most recent call last): File "/var/folders/7z/smbdnf3915bcgbkgd1qfryz40000gn/T//zeppelin_pyspark.py", line 232, in <module> eval(compiledCode) File "<string>", line 7, in <module> File "/var/folders/7z/smbdnf3915bcgbkgd1qfryz40000gn/T//zeppelin_pyspark.py", line 84, in select iterables = gateway.jvm.scala.collection.JavaConversions.collectionAsScalaIterable(tuples) File "/usr/local/opt/apache-spark/libexec/python/lib/py4j-0.9-src.zip/py4j/java_gateway.py", line 804, in __call__ [get_command_part(arg, self.pool) for arg in new_args]) File "/usr/local/opt/apache-spark/libexec/python/lib/py4j-0.9-src.zip/py4j/java_gateway.py", line 804, in <listcomp> [get_command_part(arg, self.pool) for arg in new_args]) File "/usr/local/opt/apache-spark/libexec/python/lib/py4j-0.9-src.zip/py4j/protocol.py", line 278, in get_command_part command_part = REFERENCE_TYPE + parameter._get_object_id() AttributeError: 'map' object has no attribute '_get_object_id' {code} I've noticed this for about the past month on master and just reproduced it on a new build off d47418bb4fecc8587da8cebd70d99cf34f6eb288. -- This message was sent by Atlassian JIRA (v6.3.4#6332)