Skip to content

Commit e0f4b5b

Browse files
enabled as_freq for autoswitching
1 parent b1c9bff commit e0f4b5b

File tree

2 files changed

+517
-94
lines changed

2 files changed

+517
-94
lines changed

src/snowflake/snowpark/modin/plugin/compiler/snowflake_query_compiler.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14954,6 +14954,30 @@ def rank(
1495414954

1495514955
return SnowflakeQueryCompiler(new_frame)
1495614956

14957+
@register_query_compiler_method_not_implemented(
14958+
"BasePandasDataset",
14959+
"asfreq",
14960+
UnsupportedArgsRule(
14961+
unsupported_conditions=[
14962+
(
14963+
lambda args: args.get("how") is not None,
14964+
"the 'how' parameter is not yet supported",
14965+
),
14966+
("normalize", True),
14967+
(
14968+
lambda args: args.get("fill_value") is not None,
14969+
"the 'fill_value' parameter is not yet supported",
14970+
),
14971+
(
14972+
lambda args: rule_to_snowflake_width_and_slice_unit(
14973+
args.get("freq")
14974+
)[1]
14975+
not in RULE_SECOND_TO_DAY,
14976+
"'freq' argument does not support week, month, quarter, or year",
14977+
),
14978+
],
14979+
),
14980+
)
1495714981
def asfreq(
1495814982
self,
1495914983
freq: str,

0 commit comments

Comments
 (0)