Skip to content
Advertisement

Why is this query not able to execute?

The query goes on without executing, any ideas on how I can help it resolve?

Using the Economy Data Atlas dataset from Knoema within Snowflake.

Advertisement

Answer

This might be a case where temporary tables will help your what I assume is a massive table be pruned (aka one of the reasons to avoid complex CTE’s)

I would re-write your SQL like:

so I can understand it. And I notice that you join to fx_rates twice, but both are the exact same join logic. so tis 100% pointless.. and given tfx is not used I would guess it’s that.

The next things to look at is how far through the data load your process is. To get an idea of how much more data there is to load.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement