Aggregate and Analytic operators

🟢 18 of 18 operators all ok · vtlengine 1.10.0rc3 (9e1c81a6) · pandas 2.3.3 · DuckDB 1.5.5
🟢 all ok🟡 partially implemented🛡️ refused with an error🔴 not implemented or crash🔵 engines differ ✅ match · ❌ wrong result · 🛡 guarded error (code) · 💥 crash · 📌 team decision
        ---
config:
  flowchart:
    useMaxWidth: false

---
flowchart LR
    classDef ok fill:#d4edda,stroke:#28a745,color:#000
    classDef partial fill:#fff3cd,stroke:#ffc107,color:#000
    classDef refused fill:#d4edda,stroke:#28a745,stroke-width:3px,stroke-dasharray: 2 2,color:#000
    classDef missing fill:#f8d7da,stroke:#dc3545,color:#000
    classDef diverge fill:#cce5ff,stroke:#007bff,color:#000
    classDef block fill:#2b3a4a,stroke:#2b3a4a,color:#fff,font-weight:bold
    classDef ext fill:#fff,stroke:#666,color:#000,stroke-dasharray: 5 5
    B["Aggregate and Analytic operators"]:::block
    aggregate__aggregate_invocation["Aggregate invocation · group by<br/>🟢4"]:::ok
    aggregate__analytic_invocation["Analytic invocation · over 📌<br/>🟢11"]:::ok
    aggregate__count["Counting the number of data points · count 📌<br/>🟢9"]:::ok
    aggregate__min["Minimum value · min<br/>🟢8"]:::ok
    aggregate__max["Maximum value · max<br/>🟢8"]:::ok
    aggregate__median["Median value · median<br/>🟢8"]:::ok
    aggregate__sum["Sum · sum<br/>🟢8"]:::ok
    aggregate__avg["Average value · avg<br/>🟢8"]:::ok
    aggregate__stddev_pop["Population standard deviation · stddev_pop<br/>🟢8"]:::ok
    aggregate__stddev_samp["Sample standard deviation · stddev_samp<br/>🟢8"]:::ok
    aggregate__var_pop["Population variance · var_pop<br/>🟢8"]:::ok
    aggregate__var_samp["Sample variance · var_samp<br/>🟢8"]:::ok
    aggregate__first_value["First value · first_value<br/>🟢2"]:::ok
    aggregate__last_value["Last value · last_value<br/>🟢2"]:::ok
    aggregate__lag["Lag · lag<br/>🟢4"]:::ok
    aggregate__lead["Lead · lead<br/>🟢4"]:::ok
    aggregate__rank["Rank · rank<br/>🟢2"]:::ok
    aggregate__ratio_to_report["Ratio to report · ratio_to_report<br/>🟢2"]:::ok
    aggregate__aggregate_invocation --- B
    aggregate__analytic_invocation --- B
    aggregate__count --- B
    aggregate__min --- B
    aggregate__max --- B
    aggregate__median --- B
    aggregate__sum --- B
    aggregate__avg --- B
    aggregate__stddev_pop --- B
    B --- aggregate__stddev_samp
    B --- aggregate__var_pop
    B --- aggregate__var_samp
    B --- aggregate__first_value
    B --- aggregate__last_value
    B --- aggregate__lag
    B --- aggregate__lead
    B --- aggregate__rank
    B --- aggregate__ratio_to_report
    click aggregate__aggregate_invocation href "aggregate_invocation.html"
    click aggregate__analytic_invocation href "analytic_invocation.html"
    click aggregate__count href "count.html"
    click aggregate__min href "min.html"
    click aggregate__max href "max.html"
    click aggregate__median href "median.html"
    click aggregate__sum href "sum.html"
    click aggregate__avg href "avg.html"
    click aggregate__stddev_pop href "stddev_pop.html"
    click aggregate__stddev_samp href "stddev_samp.html"
    click aggregate__var_pop href "var_pop.html"
    click aggregate__var_samp href "var_samp.html"
    click aggregate__first_value href "first_value.html"
    click aggregate__last_value href "last_value.html"
    click aggregate__lag href "lag.html"
    click aggregate__lead href "lead.html"
    click aggregate__rank href "rank.html"
    click aggregate__ratio_to_report href "ratio_to_report.html"
    

Operators

Operator

Status

Forms

Aggregate invocation group by

🟢

4

Analytic invocation over

🟢

11

Counting the number of data points count

🟢

9

Minimum value min

🟢

8

Maximum value max

🟢

8

Median value median

🟢

8

Sum sum

🟢

8

Average value avg

🟢

8

Population standard deviation stddev_pop

🟢

8

Sample standard deviation stddev_samp

🟢

8

Population variance var_pop

🟢

8

Sample variance var_samp

🟢

8

First value first_value

🟢

2

Last value last_value

🟢

2

Lag lag

🟢

4

Lead lead

🟢

4

Rank rank

🟢

2

Ratio to report ratio_to_report

🟢

2

Types

Operator

number

integer

boolean

any scalar

any type

Aggregate invocation

in

out

Analytic invocation

in

out

Counting the number of data points

out

in

in

Minimum value

in

in

out

Maximum value

in

in

out

Median value

in · out

in

Sum

in · out

in

Average value

in · out

in

Population standard deviation

in · out

in

Sample standard deviation

in · out

in

Population variance

in · out

in

Sample variance

in · out

in

First value

in

out

Last value

in

out

Lag

in

in

out

Lead

in

in

out

Rank

out

in

Ratio to report

in · out

Forms that are not green

Every form is 🟢 or 🛡️.