-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(redshift): Add support for distStyle, distKey, sortStyle and sor…
…tKey to Table (#17135) feat(redshift): Add support for distStyle, distKey, sortStyle and sortKey to Table closes #17125 Ref: 1. https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_TABLE_NEW.html 2. https://docs.aws.amazon.com/redshift/latest/dg/r_ALTER_TABLE.html ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information
1 parent
724aa17
commit a137cd1
Showing
13 changed files
with
753 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/@aws-cdk/aws-redshift/lib/private/database-query-provider/privileges.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
packages/@aws-cdk/aws-redshift/lib/private/database-query-provider/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { DatabaseQueryHandlerProps, TableHandlerProps } from '../handler-props'; | ||
|
||
export type ClusterProps = Omit<DatabaseQueryHandlerProps, 'handler'>; | ||
export type TableAndClusterProps = TableHandlerProps & ClusterProps; | ||
|
||
/** | ||
* The sort style of a table. | ||
* This has been duplicated here to exporting private types. | ||
*/ | ||
export enum TableSortStyle { | ||
/** | ||
* Amazon Redshift assigns an optimal sort key based on the table data. | ||
*/ | ||
AUTO = 'AUTO', | ||
|
||
/** | ||
* Specifies that the data is sorted using a compound key made up of all of the listed columns, | ||
* in the order they are listed. | ||
*/ | ||
COMPOUND = 'COMPOUND', | ||
|
||
/** | ||
* Specifies that the data is sorted using an interleaved sort key. | ||
*/ | ||
INTERLEAVED = 'INTERLEAVED', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.