Skip to content
Closed
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
5 changes: 1 addition & 4 deletions python/pyspark/sql/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import pyspark.sql.functions as F
from pyspark.sql.functions import to_date, unix_timestamp, from_unixtime
from pyspark.sql.types import (
DecimalType,
StringType,
ArrayType,
LongType,
Expand Down Expand Up @@ -1544,8 +1545,6 @@ def test_list_rows_unequal(self):
)

def test_list_row_unequal_schema(self):
from pyspark.sql import Row

df1 = self.spark.createDataFrame(
data=[
(1, 3000),
Expand Down Expand Up @@ -1765,8 +1764,6 @@ def test_assert_data_frame_equal_not_support_streaming(self):
def test_assert_schema_equal_with_decimal_types(self):
"""Test assertSchemaEqual with decimal types of different precision and scale
(SPARK-51062)."""
from pyspark.sql.types import StructType, StructField, DecimalType

# Same precision and scale - should pass
s1 = StructType(
[
Expand Down