zhengruifeng commented on PR #37232: URL: https://github.com/apache/spark/pull/37232#issuecomment-1191260196
@bzhaoopenstack Thanks for reporting this! BTW, I can not reproduce the case https://issues.apache.org/jira/browse/SPARK-39821 with master branch: ``` Python 3.9.12 (main, Apr 5 2022, 01:52:34) Type 'copyright', 'credits' or 'license' for more information IPython 8.4.0 -- An enhanced Interactive Python. Type '?' for help. Setting default log level to "WARN". To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel). 22/07/21 17:26:32 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable Welcome to ____ __ / __/__ ___ _____/ /__ _\ \/ _ \/ _ `/ __/ '_/ /__ / .__/\_,_/_/ /_/\_\ version 3.4.0-SNAPSHOT /_/ Using Python version 3.9.12 (main, Apr 5 2022 01:52:34) Spark context Web UI available at http://10.0.0.13:4040 Spark context available as 'sc' (master = local[*], app id = local-1658395592665). SparkSession available as 'spark'. In [1]: from pyspark import pandas as ps In [2]: a = ps.DatetimeIndex(['1970-01-01', '1970-01-01', '1970-01-01']) In [3]: a DatetimeIndex(['1970-01-01', '1970-01-01', '1970-01-01'], dtype='datetime64[ns]', freq=None) In [4]: a.__repr__() Out[4]: "DatetimeIndex(['1970-01-01', '1970-01-01', '1970-01-01'], dtype='datetime64[ns]', freq=None)" ``` So should this fix target against 3.2.x? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
