Skip to content

Conversation

@nastra
Copy link
Contributor

@nastra nastra commented Apr 12, 2024

No description provided.

@github-actions github-actions bot added the spark label Apr 12, 2024
.enableHiveSupport()
.getOrCreate();

TestBase.sparkContext = JavaSparkContext.fromSparkContext(spark.sparkContext());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TestBase.spark is created in the line above, so we should probably configure the spark context appropriately here

};
}

@TempDir protected Path temp;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's already a temp variable available in the super class (TestBaseWithCatalog), so we don't need to have 2 different ones

@nastra nastra requested a review from amogh-jahagirdar April 12, 2024 15:49
}

@TempDir protected File temp;
@TempDir protected java.nio.file.Path temp;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super nit, but while we're doing this: I find it easier to read if we don't use the fully qualified Path name here, rather use the fullly qualified name for the hadoop Path in dropWarehouse.

@amogh-jahagirdar amogh-jahagirdar merged commit 2025e79 into apache:main Apr 12, 2024
@nastra nastra deleted the spark-test-improvements branch April 13, 2024 06:39
sasankpagolu pushed a commit to sasankpagolu/iceberg that referenced this pull request Oct 27, 2024
zachdisc pushed a commit to zachdisc/iceberg that referenced this pull request Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants