Open dezhin opened 3 months ago
And why xmin
/ xmax
and ymin
/ ymax
are different for points? Is it by intention to prevent floating point errors?
Hi @dezhin. You're right. This is an issue on our end and the connector parquet files shouldn't have those fields that get accidentally pulled in from the segments. Since the values for those fields are all null for connectors (or should be), they can be safely ignored. We'll fix this in the next release but probably not worth pushing out a patch release.
And why xmin / xmax and ymin / ymax are different for points? Is it by intention to prevent floating point errors?
This happens because the native point coordinates are doubles, but xmin
, xmax
, etc are float32s. So the min values have to be the next truncated float "down" from the coordinate's double value to ensure they are less than or equal to the underlying coordinate. And max has to be the next "up" to ensure it's greater than or equal to the value. The result is this weird effect where min and max are different for points.
Thanks for the explanation and 2024-06-13-beta.1
release.
This has been resolved for connectors and will be reflected in the next release. Thanks for the flag!
@jwass do you want to leave this open to track extra fields generally?
Feel free to close, we'll double check when the next release arrives.
It seems connector parquets have excess properties derived from segments such as
speed_limits
androad_surface
that aren't declared in the schema. The schema says: