Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support CTAS Query #42

Merged
merged 3 commits into from
Nov 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ Set the number of cuncurrent execution of query max. It should be set `smaller t
| execRightCheckInterval | 100 | Optional. Timeout when number of maximum concurrent requests is exceeded |
| encryptionOption | undefined | Optional. Indicates the S3 encryption option used to encrypt the query results. Possible values include: `SSE_S3`, `SSE_KMS`, or `CSE_KMS` |
| encryptionKmsKey | undefined | Optional but required if `encryptionOption` is set to `SSE_KMS` or `CSE_KMS`. Value is the KMS key ARN or ID |
| skipFetchResult | false | Optional. If true, do not return the result of the query when the athena query is finished. This option is used for [CTAS](https://docs.aws.amazon.com/athena/latest/ug/ctas.html) |
| concurrentExecMax | 5 | DEPRECATED. Use `athena.setConcurrentExecMax()` instead |


#### `awsConfig` object properties
| Property | Default | Description |
|-----------|-----------|-------------|
Expand Down
2 changes: 1 addition & 1 deletion build/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions build/lib/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface AthenaClientConfig extends AthenaRequestConfig {
queryTimeout?: number;
concurrentExecMax?: number;
execRightCheckInterval?: number;
skipFetchResult?: boolean;
}
export declare function setConcurrentExecMax(val: number): void;
export declare class AthenaClient {
Expand All @@ -24,8 +25,8 @@ export declare class AthenaClient {
constructor(request: AthenaRequest, config: AthenaClientConfig);
execute<T>(query: string): AthenaExecutionSelect<T>;
execute<T>(query: string, callback: (err?: Error, result?: AthenaExecutionResult<T>) => void): void;
private _execute;
private canStartQuery;
private startQuery;
private endQuery;
private _execute(query, csvTransform, config);
private canStartQuery();
private startQuery();
private endQuery();
}
26 changes: 16 additions & 10 deletions build/lib/client.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/lib/client.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading