Skip to content
🌵SedonaDB (Rust) 0.3.0 is out now, featuring larger-than-memory spatial joins, and row-level CRS!

RS_LogicalDifference

Introduction: Return value from band 1 if a value in band1 and band2 are different, else return 0

Format: RS_LogicalDifference (Band1: ARRAY[Double], Band2: ARRAY[Double])

Return type: Array<Double>

Since: v1.1.0

SQL Example

val logicalDifference = spark.sql("select RS_LogicalDifference(band1, band2) as logdifference from dataframe")