Redshift Accepts IGNORE NULLS outside of expression

0

We've noticed placing INGORE NULLS inside and outside the expressions for FIRST_VALUE and LAST_VALUE yields the same semantic result. According to the docs it should be inside the expression. Is this expected behaviour or should Redshift only accept IGNORE NULLS inside the expression.

SELECT LAST_VALUE(venuename) IGNORE NULLS
    OVER (
        PARTITION BY venuestate
        ORDER BY venueseats
        ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
    ) AS last_val
FROM venue

yields same result as

SELECT LAST_VALUE(venuename IGNORE NULLS)
    OVER (
        PARTITION BY venuestate
        ORDER BY venueseats
        ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
    ) AS last_val
FROM venue
질문됨 2년 전712회 조회
1개 답변
0

Indeed as per documentation it should be placed inside but since it is working either-ways then it would be really nice if you can use the Provide feedback link on the bottom of documentation page and help us make it better.

profile pictureAWS
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠