-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1586c14
commit 028adf8
Showing
7 changed files
with
48 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
With databricks connect, spark cannot be started in local mode. | ||
|
||
There are a couple of options for running unit and integration tests: | ||
1. Run unit and integration tests using databricks connect. This requires a cluster in Databricks workspace. | ||
2. Run unit tests using spark local and integration tests using Databricks job (e.g. created using sdk). | ||
3. Have different virtual environments for unit (no databricks-connect installed) and integration tests (databricks-connect installed). |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# from databricks.connect import DatabricksSession | ||
# from marcin_project import main | ||
# | ||
# # doc: https://docs.databricks.com/en/dev-tools/databricks-connect/python/index.html | ||
# | ||
# # Create a new Databricks Connect session. If this fails, | ||
# # check that you have configured Databricks Connect correctly. | ||
# # See https://docs.databricks.com/dev-tools/databricks-connect.html | ||
# | ||
# # Take connection from .databrikcscfg file, DEFAULT profile) | ||
# # https://docs.databricks.com/dev-tools/databricks-connect-ref.html#requirements | ||
# | ||
# spark = DatabricksSession.builder.getOrCreate() | ||
# | ||
# #SparkSession.builder = DatabricksSession.builder.profile("DEFAULT") | ||
# #spark = SparkSession.builder.getOrCreate() | ||
# | ||
# # spark = DatabricksSession.builder.remote( | ||
# # host=f"https://adb-8870486534760962.2.azuredatabricks.net/?o=8870486534760962", | ||
# # token="dapi03fec0a64fcc088adc1a27864050a598-2", | ||
# # cluster_id="0222-221408-a9yml4v" | ||
# # ).getOrCreate() | ||
# | ||
# def test_main(): | ||
# taxis = main.get_taxis(spark) | ||
# assert taxis.count() > 5 |
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