There's a fair amount of overlap, but where the databricks article explains the techniques with charts and high level explanations, I go over the code instead.
What's cool about these statistics-based approaches is that you mostly don't even need fully up-to-date statistics, just overall decent stats, unless you have an insane amount of churn. Meaning - you can get query speedup without insertion overhead: you choose to take that overhead any time you want using ANALYZE.
There's a fair amount of overlap, but where the databricks article explains the techniques with charts and high level explanations, I go over the code instead.