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

Mark/print deprecation warnings as DeprecationWarning for deprecated APIs

    XMLWordPrintableJSON

    Details

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

      Description

      Currently, some warnings.warn(...) for deprecation use the category UserWarning as by default.

      If we use DeprecationWarning, this can actually be useful in IDE, in my case, PyCharm. Please see before and after in the PR. I happened to open a PR first to show my idea.

      Also, looks some deprecated functions do not have this warnings. It might be better to print out those explicitly.

        Attachments

          Activity

            People

            • Assignee:
              hyukjin.kwon Hyukjin Kwon
              Reporter:
              hyukjin.kwon Hyukjin Kwon
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: