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

Disable Pandas usage logging for method calls inside @contextmanager functions

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Minor
    • Resolution: Unresolved
    • 3.2.1
    • None
    • PySpark
    • None

    Description

      Currently, calls inside @contextmanager functions are treated as external for with statements.

      For example, the below code records config.set_option calls inside ps.option_context(...)

      with ps.option_context("compute.ops_on_diff_frames", True):
          pass 

      We should disable usage logging for calls inside @contextmanager functions to improve accuracy of the usage data

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            heyihong Yihong He
            Takuya Ueshin Takuya Ueshin

            Dates

              Created:
              Updated:

              Slack

                Issue deployment