fn validate_remote_schema(
expected: &Schema,
actual: &Schema,
source: &str,
) -> Result<()>Expand description
Validates the remote schema before positional column handling.
Two invariants apply, and the series-frame one is decided first:
- A schema carrying any
greptime.series.*top-level marker on either side is a series frame and is checked for exact identity: every reserved top-levelgreptime.series.*marker must match in both directions and every field must be equal, nested field metadata included. This compares identity, not frame validity. - Every other schema is an ordinary SQL schema and takes the lenient
comparison below. Field metadata (indexing/encoding/compression hints) is
non-semantic at this boundary and is ignored: two fields are equal when
their name and data type match and their nullability is compatible (see
fields_semantically_equal). A timestamp timezone difference is the only intentional exception, accepted when the fields share the same timestamp unit, distinct timezones, equal name, and compatible nullability. Top-level Arrow schema metadata is non-semantic at this boundary as well. JSON columns are compared semantically (seejson_fields_compatible) because their wire and decoded representations use different physical arrow types.