XMLWordPrintableJSON

Details

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

    Description

      df = self.spark.range(10e10).toDF("id")
      such_a_nice_list = ["itworks1", "itworks2", "itworks3"]
      hinted_df = df.hint("my awesome hint", 1.2345, "what", such_a_nice_list)
      Traceback (most recent call last):
        File "/Users/s.singh/personal/spark-oss/python/pyspark/sql/tests/test_dataframe.py", line 556, in test_extended_hint_types
          hinted_df = df.hint("my awesome hint", 1.2345, "what", such_a_nice_list)
        File "/Users/s.singh/personal/spark-oss/python/pyspark/sql/connect/dataframe.py", line 482, in hint
          raise TypeError(
      TypeError: param should be a int or str, but got float 1.2345

      Attachments

        Issue Links

          Activity

            People

              techaddict Sandeep Singh
              techaddict Sandeep Singh
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: