Skip to content

Commit 86cbac2

Browse files
committed
fix(test): align Hadoop integration test warehouse with Docker mount
The test was writing to <repo>/internal/recipe/hadoop-warehouse/ while Spark inside Docker used /tmp/iceberg-hadoop-warehouse, causing all cross-engine table visibility tests to fail.
1 parent 2582bbe commit 86cbac2

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

catalog/hadoop/hadoop_integration_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@ type HadoopIntegrationSuite struct {
4545
}
4646

4747
func (s *HadoopIntegrationSuite) SetupSuite() {
48-
// Use the same warehouse path as docker-compose and hadoop_validation.py
49-
// so that both Go tests and Spark see the same directory.
48+
// Use the same warehouse path that Spark is configured with inside the
49+
// Docker container (see hadoop_validation.py and docker-compose.yml).
50+
// The docker-compose volume mount maps host /tmp/iceberg-hadoop-warehouse
51+
// to container /tmp/iceberg-hadoop-warehouse, so both Go (on host) and
52+
// Spark (in container) share the same directory.
5053
s.warehouse = "/tmp/iceberg-hadoop-warehouse"
5154
s.Require().NoError(os.MkdirAll(s.warehouse, 0o755))
5255

0 commit comments

Comments
 (0)