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

Amazon Athena data source #634

Merged
merged 9 commits into from
Feb 24, 2022
Merged

Amazon Athena data source #634

merged 9 commits into from
Feb 24, 2022

Conversation

gruuya
Copy link
Contributor

@gruuya gruuya commented Feb 17, 2022

  • Add another S3-focused data source, this time backed by Amazon Athena, internally employing our SQLAlchemy FDW
  • Install missing libs in the engine Dockerfile (PyAthena, pandas)
  • Fix CSV mount example, and make Snowflake plugin default to batch size of 10000 if none specified

@gruuya gruuya requested a review from mildbyte February 17, 2022 11:39
@gruuya gruuya self-assigned this Feb 17, 2022
build_commandline_help(credentials_schema) + "\n" + build_commandline_help(params_schema)
)

_icon_file = "snowflake.svg"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"s3_secret_key": "abcd",
"connection":
{
"connection_type": "s3",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation

"aws_access_key_id": {"type": "string", "title": "AWS Access Key Id"},
"aws_secret_access_key": {"type": "string", "title": "AWS Secret Access Key"},
},
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be required, e.g.:

Suggested change
}
"required": ["aws_access_key_id", "aws_secret_access_key"],
}

Comment on lines 119 to 120
aws_access_key_id = self.params["aws_access_key_id"]
aws_secret_access_key = self.params["aws_secret_access_key"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this comes from credentials (not merged into params)

Suggested change
aws_access_key_id = self.params["aws_access_key_id"]
aws_secret_access_key = self.params["aws_secret_access_key"]
aws_access_key_id = self.credentials["aws_access_key_id"]
aws_secret_access_key = self.credentials["aws_secret_access_key"]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curiously, it actually works properly either way.

@gruuya gruuya marked this pull request as ready for review February 24, 2022 12:59
@gruuya gruuya merged commit c372912 into master Feb 24, 2022
@gruuya gruuya deleted the aws-athena-data-source-cu-1wged02 branch February 24, 2022 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants