Remove a view created with sd_to_view() from the context.

sd_drop_view(table_ref)

sd_ctx_drop_view(ctx, table_ref)

sd_view(table_ref)

sd_ctx_view(ctx, table_ref)

Arguments

table_ref

The name of the view reference

ctx

A SedonaDB context.

Value

The context, invisibly

Examples

sd_sql("SELECT 1 as one") |> sd_to_view("foofy")
sd_view("foofy")
#> <sedonab_dataframe: ?? x 1>
#> ┌───────┐
#> │  one  │
#> │ int64 │
#> ╞═══════╡
#> │     1 │
#> └───────┘
#> Preview of up to 6 row(s)
sd_drop_view("foofy")
try(sd_view("foofy"))
#> Error : Error during planning: No table named 'foofy'