Data Lake • Write your own SQL

Long queries

What if it takes a while?

Try this

  • Run this on my data lake as a background job and give me the job number: SELECT region, SUM(amount) AS revenue FROM samples.shop_orders GROUP BY ROLLUP(region) ORDER BY region

In plain words

What is it?

Big questions can run in the background while you do something else.

How does it work?

You get a job number. SHOW JOB with that number says if it is still running, done or failed.

Good to know

Only you can see your jobs.

Then try

Check on it (put your job number in)

  • Run this on my data lake: SHOW JOB <job id>