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

Improve the performance for setInterval & getInterval of UnsafeRow

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

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • SQL
    • None

    Description

      As we know, UnsafeRow stores each field with 8 bytes or Long.
      UnsafeRow supports read and store CalendarInterval.
      After my investigation, getLong/putLong of Platform have better performance than call getInt/putInt of Platform twice.

      Attachments

        Activity

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

          People

            beliefer Jiaan Geng
            beliefer Jiaan Geng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment