Skip to content

Feature/ecotricity customisations#1

Merged
EdHarper-eco merged 6 commits intomasterfrom
feature/ecotricity_customisations
Dec 8, 2020
Merged

Feature/ecotricity customisations#1
EdHarper-eco merged 6 commits intomasterfrom
feature/ecotricity_customisations

Conversation

@EdHarper-eco
Copy link
Copy Markdown

No description provided.

@EdHarper-eco EdHarper-eco requested a review from a team November 23, 2020 16:15
* the symbol `>` indicates that the row was found in the *actual* table but not in the *expected* table
* the symbol `=` indicates that the row was matched between the *expected* and *actual* tables

(this behaviour inspired by the `tSQLt` unit test framework for SQL Server)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Should this text be here? I can see it in README.md

.appName("test-pyspark")
#add delta lake support
.config("spark.jars.packages", "io.delta:delta-core_2.12:0.7.0")
.config("spark.sql.extensions", "io.delta.sql.DeltaSparkSessionExtension")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is really cool.

x, "")

# Run notebook
dbrickstest.run_notebook(".", "deltalake_write_notebook")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

there is no check whether the data points ( spark.range(0, 5) ) were actually written and are correct

# Instrument for unit tests. This is only executed in local unit tests, not in Databricks.
if 'dbutils' not in locals():
import databricks_test
databricks_test.inject_variables()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

yes, I remember now, so we'll need to do this in every notebook under test. I don't understand why the framework was written in this way, there must be a nicer way...

@EdHarper-eco EdHarper-eco merged commit f0560c8 into master Dec 8, 2020
@EdHarper-eco EdHarper-eco deleted the feature/ecotricity_customisations branch December 8, 2020 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants