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

Fix `test_ceil` to test `ceil`

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0, 3.2.2
    • PySpark, Tests
    • None

    Description

      In python/pyspark/pandas/tests/test_series_datetime.py line 262

          def test_floor(self):
              self.check_func(lambda x: x.dt.floor(freq="min"))
              self.check_func(lambda x: x.dt.floor(freq="H"))
      
          def test_ceil(self):
              self.check_func(lambda x: x.dt.floor(freq="min"))
              self.check_func(lambda x: x.dt.floor(freq="H"))
      

      Change x.dt.floor to x.dt.ceil

      Attachments

        Activity

          People

            bjornjorgensen Bjørn Jørgensen
            bjornjorgensen Bjørn Jørgensen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: