The RANK and SORT procedures might produce an error similar to the following when you use them with a Google BigQuery table:
An error similar to the following might also occur with the SORT procedure:
The error occurs if a variable defined as a FLOAT64 data type is used in the VAR statement with the RANK procedure or the BY statement with SORT procedure.
This issue occurs due to a BigQuery limitation on what data types are allowed.