Skip to content

Commit

Permalink
A bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-hoffman committed Jan 14, 2025
1 parent 8c799cb commit e22db7a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/integration/test_validate_dataframe_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from integration.conftest import is_valid_gx_cloud_url, rand_name

if TYPE_CHECKING:
import pyspark.sql as pyspark
from pyspark.sql import DataFrame as SparkDataFrame, SparkSession
from pyspark.sql.connect.dataframe import DataFrame as SparkConnectDataFrame
from pyspark.sql.connect.session import SparkSession as SparkConnectSession

Expand Down Expand Up @@ -60,7 +60,9 @@ def configure_dataframe() -> pd.DataFrame:
assert is_valid_gx_cloud_url(result["result_url"])

@pytest.mark.spark_integration
def test_spark(self, spark_session: pyspark.SparkSession) -> None:
def test_spark(self, spark_session: SparkSession) -> None:
import pyspark.sql as pyspark

column_name = "col_A"
task_id = f"test_spark_{rand_name()}"

Expand Down Expand Up @@ -115,7 +117,7 @@ def configure_dataframe() -> SparkConnectDataFrame:


@pytest.fixture
def spark_session() -> pyspark.SparkSession:
def spark_session() -> SparkSession:
import pyspark.sql as pyspark

session = pyspark.SparkSession.builder.getOrCreate()
Expand Down

0 comments on commit e22db7a

Please sign in to comment.