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

AWS Clean Rooms - New Feature - Analysis Templates. #2580

Closed
rmalecky opened this issue Dec 27, 2023 · 1 comment · Fixed by #2584
Closed

AWS Clean Rooms - New Feature - Analysis Templates. #2580

rmalecky opened this issue Dec 27, 2023 · 1 comment · Fixed by #2584
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@rmalecky
Copy link

Is your idea related to a problem? Please describe.
AWS Clean Rooms recently added support from templates in addition to free form queries. It would be helpful to update AWS SDK for Pandas to support this option.
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/cleanrooms/client/start_protected_query.html

Start Protected query requires either a SQL String or an Analysis Template ARN and optional parameters.

Describe the solution you'd like

Current Behavior:

import awswrangler as wr
df = wr.cleanrooms.read_sql_query(
     sql='SELECT DISTINCT...',
     membership_id='membership-id',
     output_bucket='output-bucket',
     output_prefix='output-prefix',
 )

New behavior

import awswrangler as wr
df = wr.cleanrooms.read_sql_query(
     analysis_template_arn= 'arn:aws:cleanrooms:us-west-2:123456789012:membership/e97cbd6b-3584-4adc-ae27-8b1d7cf9f386/analysistemplate/bd516f00-c169-43b7-921c-e242d316f605',
    parameters= {
         my_key='my_value'
     },
     membership_id='membership-id',
     output_bucket='output-bucket',
     output_prefix='output-prefix',
 )
@rmalecky rmalecky added the enhancement New feature or request label Dec 27, 2023
@kukushking
Copy link
Contributor

Thanks @rmalecky, great feature - I'll cut a PR to add it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants