variable WITH
not AS
treated as NULL
, is this expected?
#3635
Labels
type/question
Type: question about the product
WITH
not AS
treated as NULL
, is this expected?
#3635
The only diff between 1. and 2. is that in 2. there is one extra alias:
, upstream_len AS upstream_len
before the RETURN clause.Thus, when
upstream_len
was not claimed,WITH CASE WHEN upstream_len IS NULL
will be TRUE forever instead oferror
alias not declared.I was aware of this behavior (differentiate from n4j on requiring explicitly specifying alias in latest WITH before RETURN), but this seems to be confusing as it treated
upstream_len
as NULL instead of raising an error to warn the user to declare it.diff:
The text was updated successfully, but these errors were encountered: