Machine Learning Lab
Machine Learning (ML) with Amazon Athena (in Preview) lets you use Athena to write SQL statements
that run Machine Learning (ML) inference using Amazon SageMaker. This feature simplifies access to ML
models for data analysis, eliminating the need to use complex programming methods to run inference.
To use ML with Athena, you define an ML with Athena function with the USING
FUNCTION clause. The function points to the Amazon SageMaker model endpoint that you want to use
and specifies the variable names and data types to pass to the model. Subsequent clauses in the query
reference the function to pass values to the model. The model runs inference based on the values that
the query passes and then returns inference results.