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

Re-use Literal objects when replacing timestamps in the ComputeCurrentTime rule

    XMLWordPrintableJSON

Details

    Description

      The ComputeCurrentTime optimizer rule does produce unique timestamp Literals for current time expressions of a query. For CurrentDate and LocalTimestamp objects only the literal objects are not re-used though, but equal objects are created for each instance. This can cost unnecessary much memory in case there are many such Literal objects.

      Attachments

        Issue Links

          Activity

            People

              olaky Jan-Ole Sasse
              olaky Jan-Ole Sasse
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: