Do the Table performance optimizations[1] apply to jobs defined using the Table API as well or does it only apply to SQL?
I have a job written in SQL using COUNT DISTINCT and can confirm it's using Split Distinct Aggregation. However when this job is ported to a Table API equivalent, we no longer see the optimization applied.
[1]
https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/tuning/