Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-39405 NumPy Input Support in PySpark
  3. SPARK-40196

Consolidate `lit` function with NumPy scalar in sql and pandas module

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersConvert to IssueMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete CommentsDelete
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.0
    • PySpark
    • None

    Description

      Per https://github.com/apache/spark/pull/37560#discussion_r952882996,

      function `lit` with NumPy scalar in sql and pandas module have different implementations, thus, sql has a less precise result than pandas.

      We shall make their result consistent, the more precise, the better.

      Attachments

        Activity

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

          People

            XinrongM Xinrong Meng Assign to me
            XinrongM Xinrong Meng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment