Skip to Content
SourcesAmazon Athena

Amazon Athena

Amazon Athena

Scan the AWS Glue Data Catalog through Amazon Athena — Iceberg, Delta, Hudi and file tables in S3.

Category
Warehouse & Lakehouse
Source type
ATHENA
Produces
table

On AWS, the Glue Data Catalog is the list of what’s in the lake, and Athena is the way to read it. This source lists databases and tables from Glue and reads rows with Athena SQL, so each format is read by its own reader.

What you need to connect

The region and an S3 location for query results (Athena writes every query’s result there). Give an access key pair, or leave it empty to use the environment’s ambient AWS credentials. The identity needs Glue read access, Athena query access, read access to the tables’ data, and write access to the results location.

What Classifyre reads

Every Glue database and its tables and views, or only the ones you list. Each table reports its format from Glue: iceberg, delta, hudi, external for plain files, or view, plus its storage location.

Shared behaviour · SQL databases

One asset per table or view, never one per row. The asset carries the table's structure — database, schema, table name, object type, its columns and their types, and a row-count estimate — and its content is a sample of real rows, formatted so a detector reads actual values rather than a schema dump.

How many rows, and which ones, is entirely up to the sampling strategy. Large tables are paged through by key rather than by OFFSET, so a scan that stops halfway can resume from where it left off instead of re-reading from the top.

Read-only throughout. The connector issues catalog queries and bounded SELECTs. Nothing is written back, and a read-only account is the right account to give it.

Relationships come out of the engine's own catalog: a view and the tables it reads from are recorded as FLOW — real lineage, with column-level detail parsed out of the view's SQL where the SQL makes that possible. See Lineage.

Metadata on every asset

Asset kind · table

FieldTypeAlways presentWhat it is
databasestringYesDatabase or catalog name
table_namestringYesTable name
table_typestringYesObject type (TABLE/VIEW)
schemastringNoSchema name
columnsobject[]NoColumns as {name, type} objects
row_countintegerNoEstimated number of rows
table_formatstringNoStorage format of the table (iceberg, delta, hudi, paimon, lance, native, external, view)
object_typestringNoSource object type
locationstringNoTable location in S3

Lineage

Lineage

Views and the tables they read are recorded as lineage, from the SQL Athena stores with each view. See Lineage & Relationships.

Worth knowing

  • Athena bills by bytes scanned, and a row limit doesn’t reduce what a scan of an unpartitioned table reads. Every page of rows is one query, so the page size is also the cost knob, and RANDOM sampling reads the whole table once per run.
  • Another data catalog registered in Athena can be named in place of the default AwsDataCatalog.

Configuration

Beyond the fields below, every source also has the settings shared by all of them: the sampling strategy, the augmentation notebook that enriches assets after extraction, the detectors to run, the scan schedule, and the compute limits for its scan jobs.

Required

Without these, the source will not save.

FieldTypeRequiredWhat it doesDefault
requiredobjectYes—no extra properties—
regionstringYesAWS region, e.g. eu-west-1—
s3_staging_dirstringYesS3 location Athena writes query results to, e.g. s3://athena-results-bucket/classifyre/—

Secrets

Stored encrypted and never shown again after you save them. See Configuration & Fields.

FieldTypeRequiredWhat it doesDefault
maskedobjectYesLeave empty to use the scanning environment's AWS credentials (instance role, IRSA).no extra properties—
aws_access_key_idstringNoAWS access key; empty uses the ambient AWS credentials—
aws_secret_access_keystringNoAWS secret key—
aws_session_tokenstringNoAWS session token—

Optional

Everything you can tune. Sensible defaults apply when you leave them alone.

FieldTypeRequiredWhat it doesDefault
optionalobjectNo—no extra properties—
connectionobjectNo—no extra properties—
connection.catalog_namestringNoData catalog to scanAwsDataCatalog
connection.request_timeout_secondsnumberNoTimeout for one querymin 1, max 3600300
connection.work_groupstringNoAthena workgroupprimary
extractionobjectNo—no extra properties—
extraction.include_view_lineagebooleanNoRead view definitions and record what each view selects fromtrue
scopeobjectNo—no extra properties—
scope.exclude_databasesarrayNoSkip these Glue databases—
scope.exclude_databases[]stringNo——
scope.include_databasesarrayNoOnly these Glue databases—
scope.include_databases[]stringNo——
scope.include_objectsarrayNoOnly these objects (schema.table, or catalog.schema.table)—
scope.include_objects[]stringNo——
scope.include_tablesbooleanNoInclude tablestrue
scope.include_viewsbooleanNoInclude viewstrue
scope.table_limitintegerNoMaximum number of tables to scan per runmin 1—
Last updated on