Skip to content

Commit

Permalink
fix export by QueryExecutionMode - not supported (#969)
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov-aws authored Oct 17, 2024
1 parent c268433 commit af936cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cid/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ def export_analysis(qs, athena, glue):
AnalysisId=analysis_id,
)['Definition']

definition.pop('QueryExecutionMode', None) # QueryExecutionMode is supported for export but not for create or update as of 2024-10-17

for dataset in definition.get('DataSetIdentifierDeclarations', []):
# Hide region and account number of the source account
dataset["DataSetArn"] = f'arn:{qs.partition}:quicksight:::dataset/' + dataset["DataSetArn"].split('/')[-1]
Expand Down

0 comments on commit af936cf

Please sign in to comment.