Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-11860

Invalid argument specification for registerFunction [Python]

    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.5.2
    • 1.6.0
    • Documentation, PySpark
    • None

    Description

      https://github.com/apache/spark/blob/branch-1.5/python/pyspark/sql/context.py#L171-L178

      Documentation for SQLContext.registerFunction specifies a lambda function as input. This is false (it works fine with non-lambda functions). I believe this is a typo based on the presence of 'samplingRatio' in the parameter docs:

      https://github.com/apache/spark/blob/branch-1.5/python/pyspark/sql/context.py#L178

      Attachments

        Activity

          People

            zjffdu Jeff Zhang
            twietsma Tristan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified