Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make SparkSqlHook use Connection (#15794)
* Make SparkSqlHook use Connection This allows a SparkSqlHook to be created without a backing Connection, and if a backing Connection *is* found, use it to provide the default arguments not explicitly passed into the hook. * Properly clean connections for Spark tests * Expected Connection values in SparkSqlHook tests Now that SparkSqlHook defaults to read values from Connection if a config is not explicitly provided, we need to tweak the tests to reflect this expectation.
- Loading branch information
Showing
4 changed files
with
48 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters