All Products
Search
Document Center

AnalyticDB:Greater than operator ( / />)

Last Updated:Mar 28, 2026

The > operator compares two raster objects by their universally unique identifiers (UUIDs) and returns true if the UUID of the first object is greater than the UUID of the second.

This operator is used only for operations such as union and B-tree.

Note This operator compares UUIDs only, not spatial extents or pixel types.

Syntax

bool Operator>(raster rast1, raster rast2);

Parameters

ParameterDescription
rast1The first raster object.
rast2The second raster object.

Example

The following query compares the UUIDs of matched raster objects from two tables:

SELECT a.rast > b.rast
FROM tbl_a a, tbl_b b
WHERE a.id = b.id;