antonkulaga created ZEPPELIN-3728:
-------------------------------------

             Summary: "error: illegal start of" on line breaks
                 Key: ZEPPELIN-3728
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-3728
             Project: Zeppelin
          Issue Type: Bug
    Affects Versions: 0.8.0
         Environment: Zeppelin 0.8.0, latest Ubuntu
            Reporter: antonkulaga


It is exceptionally annoying that I cannot split long lines of code like:
"""
val table = spark.read.format("jdbc").option("url", 
"jdbc:postgresql://db/sequencing").option("dbtable", "samples").option("user", 
"postgres").option("password", "changeme").load()
"""
into something more readable like
"""
val table = spark.read
  .format("jdbc")
  .option("url", "jdbc:postgresql://db/sequencing")
  .option("dbtable", "samples")
  .option("user", "postgres")
  .option("password", "changeme")
  .load()
"""
because Zeppelin throws me with a huge ammount of errors like:
"table: org.apache.spark.sql.DataFrameReader = 
org.apache.spark.sql.DataFrameReader@1332d108 <console>:1: error: illegal start 
of definition .format("jdbc") ^"

Our team is migrating a lot of code from Jupyter (apache-torree based) 
notebooks (where everything is ok with line breaks) to zeppelin and this line 
breaks issue causes a lot of pain...



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to