Data Lake • Write your own SQL

Tables shared with you

What has someone else let me read?

Try this

  • Run this on my data lake: SHOW GRANTS

In plain words

What is it?

A colleague can share a table with you. You can read it but it stays theirs.

How does it work?

SHOW GRANTS lists what is shared with you. DESCRIBE GRANT shows one share. Shared tables sit in a group whose name starts with shared_.

Good to know

You only see the columns and rows they chose. If nothing is shared, the answer is only 'Done.' We have not yet tested DESCRIBE GRANT.

We have not yet tried these exact words with an assistant. If something does not work, tell us.

Then try

Look at one share (put the share number in)

  • Run this on my data lake: DESCRIBE GRANT <grant id>