Skip to content

Instantly share code, notes, and snippets.

@mrwilson
Last active December 27, 2020 14:18
Show Gist options
  • Save mrwilson/d36bed4958f2b90a731fcaa16f38064b to your computer and use it in GitHub Desktop.
Save mrwilson/d36bed4958f2b90a731fcaa16f38064b to your computer and use it in GitHub Desktop.
quack.sql
with test(round) as (
select 0
union all
select round+1 from test where round <= 20
)
select round
from
-- delete the subselect line and it gives the expected error
-- "Error: near line 1: Catalog Error: Table with name handshake does not exist!"
(select round from test limit 1) as subselect,
test;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment