내용으로 건너뛰기

Is the "IS DISTINCT FROM" operator officially supported in Redshift?

0

The Unsupported PostgreSQL Functions page lists IS DISTINCT FROM as unsupported. However, it appears to work correctly on Redshift:

SELECT NULL IS DISTINCT FROM 1;
-- Returns: TRUE

I have also verified it handles various cases as expected (NULL vs NULL, NULL vs value, value vs value). Could someone from the Redshift team clarify:

  1. Is this operator now officially supported and the documentation simply outdated?
  2. Or is this an undocumented behavior that may be removed in a future release?

This distinction matters for production workloads - I'd like to confirm it's safe to rely on before adopting it.

질문됨 3달 전127회 조회
1개 답변
1

Based on the official documentation, IS DISTINCT FROM is listed as an unsupported PostgreSQL function in Amazon Redshift. While you've observed that the operator appears to work in your current Redshift version (1.0.239402), the documentation explicitly categorizes it among unsupported features.

Given that it's officially documented as unsupported, I would advise caution in relying on this operator for production workloads. Even though it may currently function as expected, there are a few important considerations:

  1. The behavior could be undocumented and subject to change in future releases without notice
  2. It may not be fully tested or supported across all Redshift configurations and scenarios
  3. AWS support may not be able to assist with issues related to officially unsupported features

For production environments, it's generally safer to use alternative approaches that are officially documented and supported. You might consider using equivalent logic with CASE statements or other supported comparison operators combined with NULL handling functions to achieve the same result.

If you need definitive clarification on whether this represents a documentation gap or truly unsupported functionality, I'd recommend opening a support case with AWS or posting in the AWS forums where Redshift team members can provide an official response about the roadmap for this feature.

It's worth noting that Amazon Redshift is built on industry-standard SQL but has differences from PostgreSQL, and the documentation emphasizes not assuming that elements common to both systems have identical semantics.
Sources
Unsupported PostgreSQL functions - Amazon Redshift
Amazon Redshift SQL - Amazon Redshift
Unsupported PostgreSQL features - Amazon Redshift

답변함 3달 전
AWS
지원 엔지니어
검토됨 3달 전
전문가
검토됨 3달 전

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

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

관련 콘텐츠