Skip to contents

Id columns that cannot hold every 64-bit id exactly

Usage

check_id_precision(df, columns = NULL)

Arguments

df

A data frame downloaded from BigQuery or read from DuckDB.

columns

Columns to check; default every key id (a name ending in _id, except concept and cohort definition ids).

Value

A data frame of problems (column, type, problem); zero rows when all is well. integer64 and text are fine; a double is exact only up to 2^53 and an R integer only up to 2^31 - 1.