Writing a Data Source Connector Using the Athena Query Federation SDK - Amazon Athena

Writing a Data Source Connector Using the Athena Query Federation SDK

To write your own data source connectors, you can use the Athena Query Federation SDK. The Athena Query Federation SDK defines a set of interfaces and wire protocols that you can use to enable Athena to delegate portions of its query execution plan to code that you write and deploy. The SDK includes a connector suite and an example connector.

You can also customize Amazon Athena's prebuilt connectors for your own use. You can modify a copy of the source code from GitHub and then use the Connector Publish Tool to create your own AWS Serverless Application Repository package. After you deploy your connector in this way, you can use it in your Athena queries.

Note

To use the Amazon Athena Federated Query feature, set your workgroup to Athena engine version 2. For steps, see Changing Athena Engine Versions.

For information about how to download the SDK and detailed instructions for writing your own connector, see Example Athena Connector on GitHub.