This generic provides the opportunity for objects to register a mechanism to be understood as literals in the context of a SedonaDB expression. Users constructing expressions directly should use sd_expr_literal().

as_sedonadb_literal(x, ..., type = NULL, factory = NULL)

Arguments

x

An object to convert to a SedonaDB literal

...

Passed to/from methods

type

An optional data type to request for the output

factory

An sd_expr_factory() that should be passed to any other calls to as_sedonadb_literal() if needed

Value

An object of class SedonaDBExpr

Examples

as_sedonadb_literal("abcd")
#> <SedonaDBExpr>
#> Utf8("abcd")