This file contains hidden or 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
//////// | |
// The left side without matches won't be written out until a left record with event time greater than the left watermark has been processed. Matches are written immediately. Right side records with no match are dropped when a right record with eventime greater than the right water mark is processed. | |
//////// | |
// Get schemas | |
val txnSchema = spark.read.parquet("s3a://testset-a109/txn/parquet").schema | |
val scoreSchema = spark.read.parquet("s3a://testset-a109/score/parquet").schema | |
// Read data | |
val txnSDf = spark.readStream.schema(txnSchema).parquet("s3a://testset-a109/txn/parquet") |