trino_type_to_r: Map a Trino type to the name of an R type

View source: R/type_map.R

trino_type_to_rR Documentation

Map a Trino type to the name of an R type

Description

Reports the R type a column of the given Trino type is converted to. Mostly useful for documentation and testing; dbFetch() converts columns through trino_cast_column().

Usage

trino_type_to_r(type, bigint = c("integer64", "numeric", "character"))

Arguments

type

A Trino type name, with or without parameters, as a single string.

bigint

How BIGINT is handled; see dbConnect().

Value

A string naming an R class.

Examples

trino_type_to_r("varchar(10)")
trino_type_to_r("bigint")
trino_type_to_r("bigint", bigint = "numeric")
trino_type_to_r("timestamp(3) with time zone")

RTrino documentation built on Oct. 15, 2026, 5:08 p.m.