Skip to content
🎉 Apache Sedona 1.8.1 is now available! Check out the new features and improvements.

RS_LogicalOver

Introduction: Return value from band1 if it's not equal to 0, else return band2 value

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

Since: v1.1.0

SQL Example

val logicalOver = spark.sql("select RS_LogicalOver(band1, band2) as logover from dataframe")