Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.34.0, 1.35.0
Description
SELECT
a,
b
FROM (
WITH
sub AS (
SELECT
1 AS a,
2 AS b)
SELECT
*
FROM
sub)
WHERE
a IS NOT null
It will generate the following SQL statement after validation
SELECT
EXPR$0.a,
EXPR$0.b
FROM (
WITH
sub AS (
SELECT
1 AS a,
2 AS b)
SELECT
sub.a AS a, sub.b AS b
FROM
sub)
WHERE
EXPR$0.a IS NOT null
The validated SQL become invalid since there is no EXPR$0 alias append for the SqlWith sub query but used in the expression outside.
Attachments
Issue Links
- links to