* feat(redshift): parse UNLOAD TO s3 statements
* feat(redshift): add S3Service.authorizeAnonymousPutObject for the UNLOAD writer
* feat(redshift): simulate Redshift UNLOAD TO s3 via CopyOut
* feat(redshift): dispatch UNLOAD via the intercepting bridge
* test(redshift): cover UNLOAD to S3 end to end
* docs(redshift): document UNLOAD to S3 support
* fix(redshift): drain backend on UNLOAD streaming failure and handle final slice error
* refactor(redshift): clean up inline FQCN imports across main and test sources
* fix(redshift): address review feedback on UNLOAD to S3 simulator
* fix(redshift): authorize ListBucket on UNLOAD prefix probe and clean up manifest on backend EOF
* fix(redshift): authorize UNLOAD cleanup deletes and skip them under ALLOWOVERWRITE
* fix(redshift): fail open on UNLOAD MAXFILESIZE above the buffering ceiling
* feat(redshift): repeat the UNLOAD header row at the start of every slice
* test(redshift): cover UNLOAD to S3 over JDBC in the SDK compatibility suite
* docs(redshift): document UNLOAD per-file header, MAXFILESIZE bytes, and over-cap fail-open
* fix(redshift): clean up new UNLOAD slice objects even under ALLOWOVERWRITE
deleteWritten previously bailed entirely when ALLOWOVERWRITE was set, to avoid
destroying a pre-existing object a slice key had overwritten. That also left
genuinely new slice keys behind on a MANIFEST failure, exposing a partial result
with no manifest. Track which slice keys existed before the write and skip only
those on cleanup.
* fix(redshift): never delete UNLOAD output under ALLOWOVERWRITE
The preExistingKeys heuristic could not distinguish an overwrite from a fresh
write atomically: two concurrent UNLOADs to the same prefix could both classify a
key as new, and one operation's cleanup could then delete the other's output.
Drop the heuristic and simply never delete under ALLOWOVERWRITE. Non-overwrite
runs verified the prefix was empty, so their cleanup is still safe. A failed
MANIFEST + ALLOWOVERWRITE UNLOAD may leave data objects without a manifest, which
is now documented.
* fix(redshift): read UNLOAD objects via getObject in the integration test
listObjects returns metadata-only S3Object entries whose getData() is null, so
unloadToS3PrefixWritesRowsAsObjects and unloadGzipWritesCompressedObject threw
NullPointerException in CI. Fetch each body with getObject, as the MANIFEST test
already does.