Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-lspiegelberg committed Sep 3, 2024
1 parent f82cbaa commit 6fc00a8
Show file tree
Hide file tree
Showing 3 changed files with 651 additions and 649 deletions.
2 changes: 1 addition & 1 deletion src/snowflake/snowpark/_internal/ast_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ def build_proto_from_callable(
"""Registers a python callable (i.e., a function or lambda) to the AstBatch and encodes it as SpCallable protobuf."""

# TODO SNOW-1514712: This will be filled in as part of UDF ticket.
pass
expr_builder.name = func.__name__


def build_proto_from_pivot_values(
Expand Down
1,296 changes: 649 additions & 647 deletions src/snowflake/snowpark/_internal/proto/ast_pb2.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/ast/data/RelationalGroupedDataFrame.test
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ res8 = df.group_by("a").count()

df = session.create_dataframe([("SF", 21.0), ("SF", 17.5), ("SF", 24.0), ("NY", 30.9), ("NY", 33.6)], schema=["location", "temp_c"])

df.group_by("location").apply_in_pandas(test, StructType([StructField("location", StringType(), nullable=True), StructField("temp_c", FloatType(), nullable=True), StructField("temp_f", FloatType(), nullable=True)], structured=False), input_types=[StringType(16777216), DoubleType()], input_names=["LOCATION", "TEMP_C"]).sort("temp_c").collect()
df.group_by("location").apply_in_pandas(convert, StructType([StructField("location", StringType(), nullable=True), StructField("temp_c", FloatType(), nullable=True), StructField("temp_f", FloatType(), nullable=True)], structured=False), input_types=[StringType(16777216), DoubleType()], input_names=["LOCATION", "TEMP_C"]).sort("temp_c").collect()

df = session.create_dataframe([(1, "A", 10000, "JAN"), (1, "B", 400, "JAN"), (1, "B", 5000, "FEB")], schema=["empid", "team", "amount", "month"])

Expand Down

0 comments on commit 6fc00a8

Please sign in to comment.