Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ SPARK SHELL:
- "repl/**/*"
- "bin/spark-shell*"
SQL:
#- any: ["**/sql/**/*", "!python/pyspark/sql/avro/**/*", "!python/pyspark/sql/streaming/**/*", "!python/pyspark/sql/tests/test_streaming.py"]
#- any: ["**/sql/**/*", "!python/pyspark/sql/avro/**/*", "!python/pyspark/sql/streaming/**/*", "!python/pyspark/sql/tests/streaming/test_streaming.py"]
- "**/sql/**/*"
- "common/unsafe/**/*"
#- "!python/pyspark/sql/avro/**/*"
#- "!python/pyspark/sql/streaming/**/*"
#- "!python/pyspark/sql/tests/test_streaming.py"
#- "!python/pyspark/sql/tests/streaming/test_streaming.py"
- "bin/spark-sql*"
- "bin/beeline*"
- "sbin/*thriftserver*.sh"
Expand Down Expand Up @@ -125,7 +125,7 @@ STRUCTURED STREAMING:
- "**/sql/**/streaming/**/*"
- "connector/kafka-0-10-sql/**/*"
- "python/pyspark/sql/streaming/**/*"
- "python/pyspark/sql/tests/test_streaming.py"
- "python/pyspark/sql/tests/streaming/test_streaming.py"
- "**/*streaming.R"
PYTHON:
- "bin/pyspark*"
Expand Down Expand Up @@ -156,5 +156,5 @@ CONNECT:
- "**/sql/sparkconnect/**/*"
- "python/pyspark/sql/**/connect/**/*"
PROTOBUF:
- "connector/protobuf/**/*"
- "python/pyspark/sql/protobuf/**/*"
- "connector/protobuf/**/*"
- "python/pyspark/sql/protobuf/**/*"
32 changes: 16 additions & 16 deletions dev/sparktestsupport/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,22 +461,22 @@ def __hash__(self):
"pyspark.sql.tests.test_datasources",
"pyspark.sql.tests.test_functions",
"pyspark.sql.tests.test_group",
"pyspark.sql.tests.test_pandas_cogrouped_map",
"pyspark.sql.tests.test_pandas_grouped_map",
"pyspark.sql.tests.test_pandas_grouped_map_with_state",
"pyspark.sql.tests.test_pandas_map",
"pyspark.sql.tests.pandas.test_pandas_cogrouped_map",
"pyspark.sql.tests.pandas.test_pandas_grouped_map",
"pyspark.sql.tests.pandas.test_pandas_grouped_map_with_state",
"pyspark.sql.tests.pandas.test_pandas_map",
"pyspark.sql.tests.test_arrow_map",
"pyspark.sql.tests.test_pandas_udf",
"pyspark.sql.tests.test_pandas_udf_grouped_agg",
"pyspark.sql.tests.test_pandas_udf_scalar",
"pyspark.sql.tests.test_pandas_udf_typehints",
"pyspark.sql.tests.test_pandas_udf_typehints_with_future_annotations",
"pyspark.sql.tests.test_pandas_udf_window",
"pyspark.sql.tests.pandas.test_pandas_udf",
"pyspark.sql.tests.pandas.test_pandas_udf_grouped_agg",
"pyspark.sql.tests.pandas.test_pandas_udf_scalar",
"pyspark.sql.tests.pandas.test_pandas_udf_typehints",
"pyspark.sql.tests.pandas.test_pandas_udf_typehints_with_future_annotations",
"pyspark.sql.tests.pandas.test_pandas_udf_window",
"pyspark.sql.tests.test_readwriter",
"pyspark.sql.tests.test_serde",
"pyspark.sql.tests.test_session",
"pyspark.sql.tests.test_streaming",
"pyspark.sql.tests.test_streaming_listener",
"pyspark.sql.tests.streaming.test_streaming",
"pyspark.sql.tests.streaming.test_streaming_listener",
"pyspark.sql.tests.test_types",
"pyspark.sql.tests.test_udf",
"pyspark.sql.tests.test_udf_profiler",
Expand All @@ -492,10 +492,10 @@ def __hash__(self):
# doctests
# No doctests yet.
# unittests
"pyspark.sql.tests.test_connect_column_expressions",
"pyspark.sql.tests.test_connect_plan_only",
"pyspark.sql.tests.test_connect_select_ops",
"pyspark.sql.tests.test_connect_basic",
"pyspark.sql.tests.connect.test_connect_column_expressions",
"pyspark.sql.tests.connect.test_connect_plan_only",
"pyspark.sql.tests.connect.test_connect_select_ops",
"pyspark.sql.tests.connect.test_connect_basic",
],
excluded_python_implementations=[
"PyPy" # Skip these tests under PyPy since they require numpy, pandas, and pyarrow and
Expand Down
2 changes: 1 addition & 1 deletion python/pyspark/sql/connect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ To use the release version of Spark Connect:
## Run Tests

```bash
./python/run-tests --testnames 'pyspark.sql.tests.test_connect_basic'
./python/run-tests --testnames 'pyspark.sql.tests.connect.test_connect_basic'
```

16 changes: 16 additions & 0 deletions python/pyspark/sql/tests/connect/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_simple_explain_string(self):


if __name__ == "__main__":
from pyspark.sql.tests.test_connect_basic import * # noqa: F401
from pyspark.sql.tests.connect.test_connect_basic import * # noqa: F401

try:
import xmlrunner # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def test_column_literals(self):

if __name__ == "__main__":
import unittest
from pyspark.sql.tests.test_connect_column_expressions import * # noqa: F401
from pyspark.sql.tests.connect.test_connect_column_expressions import * # noqa: F401

try:
import xmlrunner # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def read_table(x):


if __name__ == "__main__":
from pyspark.sql.tests.test_connect_plan_only import * # noqa: F401
from pyspark.sql.tests.connect.test_connect_plan_only import * # noqa: F401

try:
import xmlrunner # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_select_with_literal(self):

if __name__ == "__main__":
import unittest
from pyspark.sql.tests.test_connect_select_ops import * # noqa: F401
from pyspark.sql.tests.connect.test_connect_select_ops import * # noqa: F401

try:
import xmlrunner # type: ignore
Expand Down
16 changes: 16 additions & 0 deletions python/pyspark/sql/tests/pandas/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def merge_pandas(lft, rgt):


if __name__ == "__main__":
from pyspark.sql.tests.test_pandas_cogrouped_map import * # noqa: F401
from pyspark.sql.tests.pandas.test_pandas_cogrouped_map import * # noqa: F401

try:
import xmlrunner # type: ignore[import]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ def my_pandas_udf(pdf):


if __name__ == "__main__":
from pyspark.sql.tests.test_pandas_grouped_map import * # noqa: F401
from pyspark.sql.tests.pandas.test_pandas_grouped_map import * # noqa: F401

try:
import xmlrunner # type: ignore[import]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def assert_test():


if __name__ == "__main__":
from pyspark.sql.tests.test_pandas_grouped_map_with_state import * # noqa: F401
from pyspark.sql.tests.pandas.test_pandas_grouped_map_with_state import * # noqa: F401

try:
import xmlrunner # type: ignore[import]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def func(iterator):


if __name__ == "__main__":
from pyspark.sql.tests.test_pandas_map import * # noqa: F401
from pyspark.sql.tests.pandas.test_pandas_map import * # noqa: F401

try:
import xmlrunner # type: ignore[import]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def noop(s: pd.Series) -> pd.Series:


if __name__ == "__main__":
from pyspark.sql.tests.test_pandas_udf import * # noqa: F401
from pyspark.sql.tests.pandas.test_pandas_udf import * # noqa: F401

try:
import xmlrunner # type: ignore[import]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def mean(x):


if __name__ == "__main__":
from pyspark.sql.tests.test_pandas_udf_grouped_agg import * # noqa: F401
from pyspark.sql.tests.pandas.test_pandas_udf_grouped_agg import * # noqa: F401

try:
import xmlrunner # type: ignore[import]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1330,7 +1330,7 @@ def udf(x):


if __name__ == "__main__":
from pyspark.sql.tests.test_pandas_udf_scalar import * # noqa: F401
from pyspark.sql.tests.pandas.test_pandas_udf_scalar import * # noqa: F401

try:
import xmlrunner # type: ignore[import]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def func(col: "Union[pd.Series, pd.DataFrame]", *, col2: "pd.DataFrame") -> "pd.


if __name__ == "__main__":
from pyspark.sql.tests.test_pandas_udf_typehints import * # noqa: #401
from pyspark.sql.tests.pandas.test_pandas_udf_typehints import * # noqa: #401

try:
import xmlrunner # type: ignore[import]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def func(col: "Union[pd.Series, pd.DataFrame]", *, col2: "pd.DataFrame") -> "pd.


if __name__ == "__main__":
from pyspark.sql.tests.test_pandas_udf_typehints_with_future_annotations import * # noqa: #401
from pyspark.sql.tests.pandas.test_pandas_udf_typehints_with_future_annotations import * # noqa: #401

try:
import xmlrunner # type: ignore[import]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def test_bounded_mixed(self):


if __name__ == "__main__":
from pyspark.sql.tests.test_pandas_udf_window import * # noqa: F401
from pyspark.sql.tests.pandas.test_pandas_udf_window import * # noqa: F401

try:
import xmlrunner # type: ignore[import]
Expand Down
16 changes: 16 additions & 0 deletions python/pyspark/sql/tests/streaming/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ def test_streaming_write_to_table(self):

if __name__ == "__main__":
import unittest
from pyspark.sql.tests.test_streaming import * # noqa: F401
from pyspark.sql.tests.streaming.test_streaming import * # noqa: F401

try:
import xmlrunner # type: ignore[import]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def onQueryTerminated(self, event):
if __name__ == "__main__":
import unittest

from pyspark.sql.tests.test_streaming_listener import * # noqa: F401
from pyspark.sql.tests.streaming.test_streaming_listener import * # noqa: F401

try:
import xmlrunner # type: ignore[import]
Expand Down