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

Validate sampling fraction in logical operator level

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: SQL
    • Labels:
      None

      Description

      Currently the validation of sampling fraction in dataset is incomplete.
      As an improvement, validate sampling ratio in logical operator level:
      1) if with replacement: ratio should be nonnegative
      2) else: ratio should be on interval [0, 1]

      Also add test cases for the validation.

        Attachments

          Activity

            People

            • Assignee:
              Gengliang.Wang Gengliang Wang
              Reporter:
              Gengliang.Wang Gengliang Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: