Nearest Approach Distance to a Box

The two functions answer different questions, which is what the change states. A spatiotemporal box carries a period, so nearestApproachDistance answers the least distance over the time that its two arguments share, and answers the null value when they share none. The function distance measures its two arguments as sets of points and reads no period. The signatures of distance whose arguments carry no period keep the name.

Version 1.4 gives MobilityDB one SQL dialect across its batch and stream SQL bindings, PostgreSQL, DuckDB, Apache Spark, and Apache Flink, which name every function identically. A function name must therefore be free in each of these engines. The ever, always, and temporal comparison functions are named by a one-letter quantifier, e, a, or t, followed by the comparison spelled out: a shorter name such as eLt would coincide with the function elt of Apache Spark and Apache Flink. The operators keep their symbols. The following table gives the functions behind each operator in both versions.