Skip to content

Commit

Permalink
Implement function for acosh
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-aling committed Dec 11, 2024
1 parent ae1fe68 commit 4ba1329
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/snowflake/snowpark/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10159,3 +10159,18 @@ def snowflake_cortex_summarize(text: ColumnOrLiteralStr):
sql_func_name = "snowflake.cortex.summarize"
text_col = _to_col_if_lit(text, sql_func_name)
return builtin(sql_func_name)(text_col)


@publicapi
def acosh(e: ColumnOrName, _emit_ast: bool = True) -> Column:
"""
Returns the inverse hyperbolic cosine of the records in a group.
Example::
>>> df = session.create_dataframe([2.352409615], schema=["a"])
>>> df.select(acosh("a").as_("acosh")).collect()
[Row(ACOSH=1.4999999998857607)]
"""
c = _to_col_if_str(e, "acosh")
return builtin("acosh", _emit_ast=_emit_ast)(c)

0 comments on commit 4ba1329

Please sign in to comment.