Skip to content

Commit

Permalink
Update Integer Delta Append (rtdip#510)
Browse files Browse the repository at this point in the history
Signed-off-by: GBBBAS <[email protected]>
  • Loading branch information
GBBBAS authored Sep 26, 2023
1 parent 82f4c35 commit 3d3a1a0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,9 @@ def write_stream(self):

if self.destination_integer != None:
delta_integer = SparkDeltaDestination(
data=self.data.select(
"TagName", "EventTime", "Status", "Value"
).filter(ValueTypeConstants.INTEGER_VALUE),
data=self.data.select("TagName", "EventTime", "Status", "Value")
.filter(ValueTypeConstants.INTEGER_VALUE)
.withColumn("Value", col("Value").cast("integer")),
destination=self.destination_integer,
options=self.options,
mode=self.mode,
Expand Down

0 comments on commit 3d3a1a0

Please sign in to comment.