Skip to main content

Module analyze

Module analyze 

Source
Expand description

Customized ANALYZE plan that aware of MergeScanExec.

The code skeleton is taken from datafusion/physical-plan/src/analyze.rs

StructsΒ§

AnalyzeOutputBuilder πŸ”’
Build the result [DfRecordBatch] of ANALYZE
DistAnalyzeExec
JsonMetrics πŸ”’

ConstantsΒ§

NODE πŸ”’
PLAN πŸ”’
STAGE πŸ”’

FunctionsΒ§

analyze_plan_metrics_to_json_value
Returns verbose analyze metrics as JSON values using the same JsonMetrics shape as EXPLAIN ANALYZE VERBOSE FORMAT JSON.
create_output_batch πŸ”’
Creates the output of AnalyzeExec as a RecordBatch
dist_analyze_output_schema
Fixed output schema of DistAnalyzeExec, for Describe handlers: execution rewrites the plan in optimize_physical_plan, so this schema differs from the logical Analyze plan’s.
metrics_to_string πŸ”’