Athena is missing GetTableSummary method implementation, preventing it from using the bruin data-diff command. Currently only postgres, bigquery, snowflake, and duckdb support data-diff.
More about data-diff on : https://getbruin.com/docs/bruin/commands/data-diff.html
The GetTableSummary method analyzes a table's schema and data statistics to enable comparison between tables. It returns column information (types, constraints) and statistical data (row counts, null counts, min/max values, averages) that bruin data-diff uses to identify differences between tables.
Implementation
Add GetTableSummary method for the database . Postgres , bigquery , duckdb already implements functions take a look at these packages db.go to get an idea of the implementation
func (db *DB) GetTableSummary(ctx context.Context, tableName string, schemaOnly bool) (*diff.TableSummaryResult, error) {
// Follow pattern from pkg/postgres/db.go or pkg/duckdb/db.go
// Return table statistics for data comparison
}
Acceptance Criteria
Athena is missing
GetTableSummarymethod implementation, preventing it from using thebruin data-diffcommand. Currently only postgres, bigquery, snowflake, and duckdb support data-diff.More about data-diff on : https://getbruin.com/docs/bruin/commands/data-diff.html
The
GetTableSummarymethod analyzes a table's schema and data statistics to enable comparison between tables. It returns column information (types, constraints) and statistical data (row counts, null counts, min/max values, averages) thatbruin data-diffuses to identify differences between tables.Implementation
Add
GetTableSummarymethod for the database . Postgres , bigquery , duckdb already implements functions take a look at these packages db.go to get an idea of the implementationAcceptance Criteria
GetTableSummarymethod implemented inpkg/athena/db.gobruin data-diffworks for blockhouse--schema-onlyflag works