기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.
AWS Clean Rooms 차등 프라이버시의 SQL 기능
AWS Clean Rooms 차등 프라이버시는 범용 쿼리 구조를 사용하여 복잡한 SQL 쿼리를 지원합니다. 사용자 지정 분석 템플릿은 차등 프라이버시로 보호되는 테이블에서 실행할 수 있도록 이 구조에 대해 검증됩니다. 다음 테이블에는 지원되는 함수가 나와 있습니다. 자세한 정보는 쿼리 구조 및 구문 섹션을 참조하세요.
짧은 이름 | SQL 구성 | 공통 테이블 표현식(CTE) | SQL SELECT 절 |
---|---|---|---|
Aggregate functions |
|
Supported with the condition that CTEs using differential privacy protected tables
must result in data with user-level records. You should write the SELECT expression in
those CTEs using `SELECT userIdentifierColumn...' format. |
Supported aggregations: AVG, COUNT, COUNT DISTINCT, STDDEV, and SUM. |
CTEs | WITH clause, WITH clause subquery | Supported with the condition that CTEs using differential privacy protected tables
must result in data with user-level records. You should write the SELECT expression in
those CTEs using `SELECT userIdentifierColumn...' format. |
N/A |
Subqueries |
|
You can have any subquery that doesn't reference differential privacy relations in these constructs. You can have any subquery that references differential privacy relations in a FROM and JOIN clause only. | |
Join clauses |
|
사용자 식별자 열의 동등 조인인 JOIN 함수만 조건으로 지원되며, 차등 프라이버시가 설정된 상태에서 둘 이상의 테이블을 쿼리할 때는 필수 상태로 지원됩니다. 필수 동등 조인 조건이 올바른지 확인합니다. 테이블 소유자가 모든 테이블에서 동일한 사용자 식별자 열을 구성하면 사용자 정의가 테이블 간에 일관되게 유지됩니다. 차등 프라이버시가 켜진 상태에서 둘 이상의 관계를 결합할 때 CROSS JOIN 함수는 지원되지 않습니다. |
|
Set operators | UNION, UNION ALL, INTERSECT, EXCEPT | MINUS (these are synonyms) | All are supported | Not supported |
Window functions |
집계 함수
순위 함수
|
All are supported with the condition that the user identifier column in the window function's partition clause is required when you query a relation with differential privacy turned on. | Not supported |
Conditional expressions |
|
All are supported | All are supported |
Conditions |
|
exists and IN cannot be used because they require
subqueries. All others are supported. |
All are supported |
Date-time functions |
|
All are supported | All are supported |
String functions |
|
All are supported | All are supported |
Data type formatting functions |
|
All are supported | All are supported |
Hash functions |
|
All are supported | All are supported |
Mathematical operator symbols | +, -, *, /, %, and @ | All are supported | All are supported |
Math functions |
|
All are supported | All are supported |
SUPER type information functions |
|
All are supported | All are supported |
VARBYTE functions |
|
All are supported | All are supported |
JSON |
|
All are supported | All are supported |
Array functions |
|
Not supported | Not supported |
Extended GROUP BY | GROUPING SETS, ROLLUP, CUBE | Not supported | Not supported |
Sort operation | ORDER BY | Supported with the condition that an ORDER BY clause is only supported in a window function's partition clause when querying tables with differential privacy turned on. | Supported |
Row limits | LIMIT, OFFSET | Not supported in CTEs using differential privacy protected tables | All are supported |
Table and column aliasing | Supported | Supported | |
Math functions on aggregate functions | Supported | Supported | |
Scalar functions within aggregate functions | Supported | Supported |
지원되지 않는 SQL 구성에 대한 공통 대안
범주 | SQL 구성 | 대안 |
---|---|---|
윈도 함수 |
|
You can use the equivalent aggregate function with GROUP BY. |
Mathematical operator symbols |
|
|
Scalar functions |
|
|
Literals | INTERVAL ‘1 SECOND' | INTERVAL '1' SECOND |
Row limiting | TOP n | LIMIT n |
Join |
|
ON clause should explicitly contain a join criterion. |