common_function::table::flush_compact_table

Function parse_compact_params

source
fn parse_compact_params(
    params: &[ValueRef<'_>],
    query_ctx: &QueryContextRef,
) -> Result<CompactTableRequest>
Expand description

Parses compact_table UDF parameters. This function accepts following combinations:

  • [<table_name>]: only tables name provided, using default compaction type: regular
  • [<table_name>, <type>]: specify table name and compaction type. The compaction options will be default.
  • [<table_name>, <type>, <options>]: provides both type and type-specific options.