Skip to contents

Compare column types between BigQuery and DuckDB

Usage

compare_column_types(bigquery, duckdb)

Arguments

bigquery

Rows of BigQuery INFORMATION_SCHEMA.COLUMNS (table_name, column_name, data_type).

duckdb

Rows of DuckDB information_schema.columns with the same three columns.

Value

A data frame, one row per (table, column), with status: ok; id_narrowed (a key id that is INT64 in BigQuery but not BIGINT in DuckDB, so ids above 2^31 - 1 or 2^53 break); type_mismatch; or only_bigquery / only_duckdb (the CDM versions differ; informational). Only id_narrowed and type_mismatch are failures.