Skip to content

Commit

Permalink
Add tags to test_dual_write
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenk committed Sep 24, 2023
1 parent f35b345 commit ed634cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/examples/test_dual_write.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import tempfile

#tag::test[]
from sparktestingbase.sqltestcase import SQLTestCase
from pyspark.sql.functions import current_timestamp
from pyspark.sql.types import Row
Expand All @@ -21,3 +22,4 @@ def test_actual_dual_write(self):
df1 = self.sqlCtx.read.format("parquet").load(p1)
df2 = self.sqlCtx.read.format("parquet").load(p2)
self.assertDataFrameEqual(df2.select("times"), df1, 0.1)
#end::test[]

0 comments on commit ed634cc

Please sign in to comment.