Skip to content

Commit

Permalink
[SPARK-43611][PS][CONNECT][TESTS][FOLLOWUPS] Enable more tests
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?
Enable more tests, they were excluded from #42086 due to the flaky CI issues

### Why are the changes needed?
for test parity

### Does this PR introduce _any_ user-facing change?
no, test-only

### How was this patch tested?
enabled tests

Closes #42182 from zhengruifeng/spark_43611_followup.

Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
  • Loading branch information
zhengruifeng committed Jul 27, 2023
1 parent f794734 commit 9b40c0c
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 210 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,10 @@ class FrameParityComputeTests(FrameComputeMixin, PandasOnSparkTestUtils, ReusedC
def psdf(self):
return ps.from_pandas(self.pdf)

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_diff(self):
super().test_diff()

@unittest.skip("Spark Connect does not support RDD but the tests depend on them.")
def test_mode(self):
super().test_mode()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_pct_change(self):
super().test_pct_change()

@unittest.skip("TODO(SPARK-43618): Fix pyspark.sq.column._unary_op to work with Spark Connect.")
def test_rank(self):
super().test_rank()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,54 +29,6 @@ class FrameParityCumulativeTests(
def psdf(self):
return ps.from_pandas(self.pdf)

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_cummax(self):
super().test_cummax()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_cummax_multiindex_columns(self):
super().test_cummax_multiindex_columns()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_cummin(self):
super().test_cummin()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_cummin_multiindex_columns(self):
super().test_cummin_multiindex_columns()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_cumprod(self):
super().test_cumprod()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_cumprod_multiindex_columns(self):
super().test_cumprod_multiindex_columns()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_cumsum(self):
super().test_cumsum()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_cumsum_multiindex_columns(self):
super().test_cumsum_multiindex_columns()


if __name__ == "__main__":
from pyspark.pandas.tests.connect.computation.test_parity_cumulative import * # noqa: F401
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,7 @@
class DiffFramesParityBasicSlowTests(
DiffFramesBasicSlowMixin, PandasOnSparkTestUtils, ReusedConnectTestCase
):
@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_diff(self):
super().test_diff()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_rank(self):
super().test_rank()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_shift(self):
super().test_shift()
pass


if __name__ == "__main__":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ class FrameParityTimeSeriesTests(
def psdf(self):
return ps.from_pandas(self.pdf)

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_shift(self):
super().test_shift()


if __name__ == "__main__":
from pyspark.pandas.tests.connect.frame.test_parity_time_series import * # noqa: F401
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,7 @@
class GroupbyParityCumulativeTests(
GroupbyCumulativeMixin, PandasOnSparkTestUtils, ReusedConnectTestCase
):
@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_cumcount(self):
super().test_cumcount()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_cummax(self):
super().test_cummax()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_cummin(self):
super().test_cummin()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_cumprod(self):
super().test_cumprod()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_cumsum(self):
super().test_cumsum()
pass


if __name__ == "__main__":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,7 @@
class GroupByParityTests(
GroupByTestsMixin, PandasOnSparkTestUtils, TestUtils, ReusedConnectTestCase
):
@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_shift(self):
super().test_shift()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_diff(self):
super().test_diff()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_rank(self):
super().test_rank()
pass


if __name__ == "__main__":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,7 @@
class GroupbyParityMissingDataTests(
GroupbyMissingDataMixin, PandasOnSparkTestUtils, ReusedConnectTestCase
):
@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_bfill(self):
super().test_bfill()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_ffill(self):
super().test_ffill()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_fillna(self):
super().test_fillna()
pass


if __name__ == "__main__":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ def psdf(self):
def test_append(self):
super().test_append()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_monotonic(self):
super().test_monotonic()

@unittest.skip("TODO(SPARK-43620): Support `Column` for SparkConnectColumn.__getitem__.")
def test_factorize(self):
super().test_factorize()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ class FrameParityResetIndexTests(
def psdf(self):
return ps.from_pandas(self.pdf)

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_reset_index_with_default_index_types(self):
super().test_reset_index_with_default_index_types()


if __name__ == "__main__":
from pyspark.pandas.tests.connect.indexes.test_parity_reset_index import * # noqa: F401
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@
class DefaultIndexParityTests(
DefaultIndexTestsMixin, PandasOnSparkTestUtils, ReusedConnectTestCase
):
@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_default_index_sequence(self):
super().test_default_index_sequence()

@unittest.skip(
"TODO(SPARK-43623): Enable DefaultIndexParityTests.test_index_distributed_sequence_cleanup."
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@
class GenericFunctionsParityTests(
GenericFunctionsTestsMixin, TestUtils, PandasOnSparkTestUtils, ReusedConnectTestCase
):
@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_interpolate(self):
super().test_interpolate()
pass


if __name__ == "__main__":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,47 +29,7 @@ class OpsOnDiffFramesGroupByRollingParityTests(
TestUtils,
ReusedConnectTestCase,
):
@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_groupby_rolling_count(self):
super().test_groupby_rolling_count()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_groupby_rolling_min(self):
super().test_groupby_rolling_min()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_groupby_rolling_max(self):
super().test_groupby_rolling_max()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_groupby_rolling_mean(self):
super().test_groupby_rolling_mean()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_groupby_rolling_sum(self):
super().test_groupby_rolling_sum()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_groupby_rolling_std(self):
super().test_groupby_rolling_std()

@unittest.skip(
"TODO(SPARK-43611): Fix unexpected `AnalysisException` from Spark Connect client."
)
def test_groupby_rolling_var(self):
super().test_groupby_rolling_var()
pass


if __name__ == "__main__":
Expand Down

0 comments on commit 9b40c0c

Please sign in to comment.