parse_compact_request

Function parse_compact_request 

Source
fn parse_compact_request(
    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.
    • For twcs, it accepts parallelism=[N] where N is an unsigned 32 bits number
    • For swcs, it accepts two numeric parameter: parallelism and window.