|
@@ -63,11 +63,11 @@ object diff_data_20240718 {
|
|
if (map2.contains(key) && value1 != map2(key)) {
|
|
if (map2.contains(key) && value1 != map2(key)) {
|
|
val res = s"LogKey: $logkey, Key: $key, RDD1 Value: $value1, RDD2 Value: ${map2(key)}"
|
|
val res = s"LogKey: $logkey, Key: $key, RDD1 Value: $value1, RDD2 Value: ${map2(key)}"
|
|
println(res)
|
|
println(res)
|
|
- result += res
|
|
|
|
|
|
+ result = result :+ res
|
|
} else if (!map2.contains(key)) {
|
|
} else if (!map2.contains(key)) {
|
|
val res = s"LogKey: $logkey, Key: $key, RDD1 Value: $value1, RDD2 does not have this key"
|
|
val res = s"LogKey: $logkey, Key: $key, RDD1 Value: $value1, RDD2 does not have this key"
|
|
println(res)
|
|
println(res)
|
|
- result += res
|
|
|
|
|
|
+ result = result :+ res
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|