easy_sql.udf.udfs

Module Contents

Classes

ChUdfs

https://clickhouse.com/docs/en/sql-reference/statements/create/function

PgUdfs

SparkUdfs

Functions

get_udfs(type)

class easy_sql.udf.udfs.ChUdfs

https://clickhouse.com/docs/en/sql-reference/statements/create/function CREATE FUNCTION name AS (parameter0, …) -> expression

static all()
Return type

Dict[str, Callable[[], str]]

static translate()
class easy_sql.udf.udfs.PgUdfs
static all()
Return type

Dict[str, Callable[[], str]]

static date_format()
static from_unixtime()
static get_json_object()
static sha1()
static split()
static trim_all()
class easy_sql.udf.udfs.SparkUdfs
static all()
Return type

Dict[str, Callable]

static remove_all_whitespaces(value)
Parameters

value (Optional[str]) –

Return type

Optional[str]

static trim_all(value)
Parameters

value (Optional[str]) –

Return type

Optional[str]

easy_sql.udf.udfs.get_udfs(type)
Parameters

type (str) –

Return type

Union[Dict[str, Callable[[], Union[str, List[str]]]], Dict[str, Callable]]