[jira] [Updated] (SPARK-45989) Fix `pyspark.pandas.tests.connect.computation.test_parity_apply_func` in Python 3.11
[ https://issues.apache.org/jira/browse/SPARK-45989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dongjoon Hyun updated SPARK-45989: -- Fix Version/s: 3.4.4 > Fix `pyspark.pandas.tests.connect.computation.test_parity_apply_func` in > Python 3.11 > > > Key: SPARK-45989 > URL: https://issues.apache.org/jira/browse/SPARK-45989 > Project: Spark > Issue Type: Sub-task > Components: PySpark >Affects Versions: 4.0.0 >Reporter: Dongjoon Hyun >Assignee: Dongjoon Hyun >Priority: Major > Fix For: 4.0.0, 3.5.2, 3.4.4 > > > https://github.com/apache/spark/actions/runs/6914662405/job/18816505612 > {code} > == > ERROR [1.237s]: test_apply_batch_with_type > (pyspark.pandas.tests.connect.computation.test_parity_apply_func.FrameParityApplyFunctionTests.test_apply_batch_with_type) > -- > Traceback (most recent call last): > File > "/__w/spark/spark/python/pyspark/pandas/tests/computation/test_apply_func.py", > line 248, in test_apply_batch_with_type > def identify3(x) -> ps.DataFrame[float, [int, List[int]]]: > ^ > File "/__w/spark/spark/python/pyspark/pandas/frame.py", line 13540, in > __class_getitem__ > return create_tuple_for_frame_type(params) >^^^ > File "/__w/spark/spark/python/pyspark/pandas/typedef/typehints.py", line > 721, in create_tuple_for_frame_type > return Tuple[_to_type_holders(params)] > > File "/__w/spark/spark/python/pyspark/pandas/typedef/typehints.py", line > 766, in _to_type_holders > data_types = _new_type_holders(data_types, NameTypeHolder) > ^ > File "/__w/spark/spark/python/pyspark/pandas/typedef/typehints.py", line > 832, in _new_type_holders > raise TypeError( > TypeError: Type hints should be specified as one of: > - DataFrame[type, type, ...] > - DataFrame[name: type, name: type, ...] > - DataFrame[dtypes instance] > - DataFrame[zip(names, types)] > - DataFrame[index_type, [type, ...]] > - DataFrame[(index_name, index_type), [(name, type), ...]] > - DataFrame[dtype instance, dtypes instance] > - DataFrame[(index_name, index_type), zip(names, types)] > - DataFrame[[index_type, ...], [type, ...]] > - DataFrame[[(index_name, index_type), ...], [(name, type), ...]] > - DataFrame[dtypes instance, dtypes instance] > - DataFrame[zip(index_names, index_types), zip(names, types)] > However, got (, typing.List[int]). > -- > Ran 10 tests in 78.247s > FAILED (errors=1) > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Updated] (SPARK-45989) Fix `pyspark.pandas.tests.connect.computation.test_parity_apply_func` in Python 3.11
[ https://issues.apache.org/jira/browse/SPARK-45989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hyukjin Kwon updated SPARK-45989: - Fix Version/s: 3.5.2 > Fix `pyspark.pandas.tests.connect.computation.test_parity_apply_func` in > Python 3.11 > > > Key: SPARK-45989 > URL: https://issues.apache.org/jira/browse/SPARK-45989 > Project: Spark > Issue Type: Sub-task > Components: PySpark >Affects Versions: 4.0.0 >Reporter: Dongjoon Hyun >Assignee: Dongjoon Hyun >Priority: Major > Fix For: 4.0.0, 3.5.2 > > > https://github.com/apache/spark/actions/runs/6914662405/job/18816505612 > {code} > == > ERROR [1.237s]: test_apply_batch_with_type > (pyspark.pandas.tests.connect.computation.test_parity_apply_func.FrameParityApplyFunctionTests.test_apply_batch_with_type) > -- > Traceback (most recent call last): > File > "/__w/spark/spark/python/pyspark/pandas/tests/computation/test_apply_func.py", > line 248, in test_apply_batch_with_type > def identify3(x) -> ps.DataFrame[float, [int, List[int]]]: > ^ > File "/__w/spark/spark/python/pyspark/pandas/frame.py", line 13540, in > __class_getitem__ > return create_tuple_for_frame_type(params) >^^^ > File "/__w/spark/spark/python/pyspark/pandas/typedef/typehints.py", line > 721, in create_tuple_for_frame_type > return Tuple[_to_type_holders(params)] > > File "/__w/spark/spark/python/pyspark/pandas/typedef/typehints.py", line > 766, in _to_type_holders > data_types = _new_type_holders(data_types, NameTypeHolder) > ^ > File "/__w/spark/spark/python/pyspark/pandas/typedef/typehints.py", line > 832, in _new_type_holders > raise TypeError( > TypeError: Type hints should be specified as one of: > - DataFrame[type, type, ...] > - DataFrame[name: type, name: type, ...] > - DataFrame[dtypes instance] > - DataFrame[zip(names, types)] > - DataFrame[index_type, [type, ...]] > - DataFrame[(index_name, index_type), [(name, type), ...]] > - DataFrame[dtype instance, dtypes instance] > - DataFrame[(index_name, index_type), zip(names, types)] > - DataFrame[[index_type, ...], [type, ...]] > - DataFrame[[(index_name, index_type), ...], [(name, type), ...]] > - DataFrame[dtypes instance, dtypes instance] > - DataFrame[zip(index_names, index_types), zip(names, types)] > However, got (, typing.List[int]). > -- > Ran 10 tests in 78.247s > FAILED (errors=1) > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Updated] (SPARK-45989) Fix `pyspark.pandas.tests.connect.computation.test_parity_apply_func` in Python 3.11
[ https://issues.apache.org/jira/browse/SPARK-45989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dongjoon Hyun updated SPARK-45989: -- Description: https://github.com/apache/spark/actions/runs/6914662405/job/18816505612 {code} == ERROR [1.237s]: test_apply_batch_with_type (pyspark.pandas.tests.connect.computation.test_parity_apply_func.FrameParityApplyFunctionTests.test_apply_batch_with_type) -- Traceback (most recent call last): File "/__w/spark/spark/python/pyspark/pandas/tests/computation/test_apply_func.py", line 248, in test_apply_batch_with_type def identify3(x) -> ps.DataFrame[float, [int, List[int]]]: ^ File "/__w/spark/spark/python/pyspark/pandas/frame.py", line 13540, in __class_getitem__ return create_tuple_for_frame_type(params) ^^^ File "/__w/spark/spark/python/pyspark/pandas/typedef/typehints.py", line 721, in create_tuple_for_frame_type return Tuple[_to_type_holders(params)] File "/__w/spark/spark/python/pyspark/pandas/typedef/typehints.py", line 766, in _to_type_holders data_types = _new_type_holders(data_types, NameTypeHolder) ^ File "/__w/spark/spark/python/pyspark/pandas/typedef/typehints.py", line 832, in _new_type_holders raise TypeError( TypeError: Type hints should be specified as one of: - DataFrame[type, type, ...] - DataFrame[name: type, name: type, ...] - DataFrame[dtypes instance] - DataFrame[zip(names, types)] - DataFrame[index_type, [type, ...]] - DataFrame[(index_name, index_type), [(name, type), ...]] - DataFrame[dtype instance, dtypes instance] - DataFrame[(index_name, index_type), zip(names, types)] - DataFrame[[index_type, ...], [type, ...]] - DataFrame[[(index_name, index_type), ...], [(name, type), ...]] - DataFrame[dtypes instance, dtypes instance] - DataFrame[zip(index_names, index_types), zip(names, types)] However, got (, typing.List[int]). -- Ran 10 tests in 78.247s FAILED (errors=1) {code} > Fix `pyspark.pandas.tests.connect.computation.test_parity_apply_func` in > Python 3.11 > > > Key: SPARK-45989 > URL: https://issues.apache.org/jira/browse/SPARK-45989 > Project: Spark > Issue Type: Sub-task > Components: PySpark >Affects Versions: 4.0.0 >Reporter: Dongjoon Hyun >Priority: Major > > https://github.com/apache/spark/actions/runs/6914662405/job/18816505612 > {code} > == > ERROR [1.237s]: test_apply_batch_with_type > (pyspark.pandas.tests.connect.computation.test_parity_apply_func.FrameParityApplyFunctionTests.test_apply_batch_with_type) > -- > Traceback (most recent call last): > File > "/__w/spark/spark/python/pyspark/pandas/tests/computation/test_apply_func.py", > line 248, in test_apply_batch_with_type > def identify3(x) -> ps.DataFrame[float, [int, List[int]]]: > ^ > File "/__w/spark/spark/python/pyspark/pandas/frame.py", line 13540, in > __class_getitem__ > return create_tuple_for_frame_type(params) >^^^ > File "/__w/spark/spark/python/pyspark/pandas/typedef/typehints.py", line > 721, in create_tuple_for_frame_type > return Tuple[_to_type_holders(params)] > > File "/__w/spark/spark/python/pyspark/pandas/typedef/typehints.py", line > 766, in _to_type_holders > data_types = _new_type_holders(data_types, NameTypeHolder) > ^ > File "/__w/spark/spark/python/pyspark/pandas/typedef/typehints.py", line > 832, in _new_type_holders > raise TypeError( > TypeError: Type hints should be specified as one of: > - DataFrame[type, type, ...] > - DataFrame[name: type, name: type, ...] > - DataFrame[dtypes instance] > - DataFrame[zip(names, types)] > - DataFrame[index_type, [type, ...]] > - DataFrame[(index_name, index_type), [(name, type), ...]] > - DataFrame[dtype instance, dtypes instance] > - DataFrame[(index_name, index_type), zip(names, types)] > - DataFrame[[index_type, ...], [type, ...]] > - DataFrame[[(index_name, index_type), ...], [(name, type), ...]] > - DataFrame[dtypes instance, dtypes instance] > - DataFrame[zip(index_names, index_types), zip(names, types)] >