Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-6813 SparkR style guide
  3. SPARK-9053

Fix spaces around parens, infix operators etc.

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • SparkR
    • None

    Description

      We have a number of style errors which look like

      Place a space before left parenthesis
      ...
      Put spaces around all infix operators.
      

      However some of the warnings are spurious (example space around infix operator in

      expect_equal(collect(select(df, hypot(df$a, df$b)))[4, "HYPOT(a, b)"], sqrt(4^2 + 8^2))
      

      We should add a ignore rule for these spurious examples

      Attachments

        Activity

          People

            yuu.ishikawa@gmail.com Yu Ishikawa
            shivaram Shivaram Venkataraman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: