mirror of
https://github.com/floci-io/floci.git
synced 2026-11-25 14:57:54 -05:00
* refactor(glue): move PartitionProjection from athena to glue package PartitionProjection resolves Glue table partition layout, not Athena-specific logic — Athena is only its current caller. Moving it into services/glue gives the upcoming GlueTableResolver (Redshift Spectrum Phase 2) a home for it without a glue-depends-on-athena layering inversion. readPath and assertInjectedColumnsFiltered become public (their callers stay in services/athena, a different package now); enabled/parameter stay package-private since nothing outside the class uses them. * refactor(glue): extract GlueTableResolver from GlueViewDdlBuilder GlueViewDdlBuilder now delegates table-to-read-plan resolution (read function inference, read expression, Iceberg detection, column projection) to a new public GlueTableResolver, so Redshift Spectrum's Glue-backed external tables can reuse the same logic Athena already proved correct. * refactor(redshift): extract RedshiftRoleAccess from S3CopySimulator COPY and UNLOAD's IAM role resolution and S3 authorization now live in a standalone RedshiftRoleAccess, matching the existing ManifestReader extraction pattern in this package, so Redshift Spectrum's Glue-backed external schemas (IAM_ROLE-authorized reads) can reuse it instead of duplicating role-session and policy-evaluation logic. Adds direct coverage for the enforced-policy-denial path, which only had implicit enforcement-off coverage before this extraction. * fix(redshift): follow RedshiftRoleAccess in native init list and partition baseline