Skip to content

Commit

Permalink
Organize pyspark functions unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaddeucci committed May 5, 2024
1 parent 3f1334c commit c1f4c15
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from duckdb.experimental.spark.sql import functions as F


class TestStringFunctions(object):
class TestSparkFunctionsHash(object):
def test_md5(self, spark):
data = [
("quack",),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import pytest

_ = pytest.importorskip("duckdb.experimental.spark")
from duckdb.experimental.spark.sql.types import Row
from duckdb.experimental.spark.sql import functions as F
from duckdb.experimental.spark.sql.types import Row


class TestNumericFunctions(object):
class TestSparkFunctionsNumeric(object):
def test_greatest(self, spark):
data = [
(1, 2),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import pytest

_ = pytest.importorskip("duckdb.experimental.spark")
from duckdb.experimental.spark.sql.types import Row
from duckdb.experimental.spark.sql import functions as F
from duckdb.experimental.spark.sql.types import Row


class TestStringFunctions(object):
class TestSparkFunctionsString(object):
def test_length(self, spark):
data = [
("firstRowFirstColumn",),
Expand Down

0 comments on commit c1f4c15

Please sign in to comment.