Class BigQueryType

java.lang.Object
io.trino.plugin.bigquery.BigQueryType

public final class BigQueryType extends Object
  • Method Details

    • toLocalDateTime

      public static LocalDateTime toLocalDateTime(String datetime)
    • toTrinoTimestamp

      public static long toTrinoTimestamp(String datetime)
    • dateToStringConverter

      public static String dateToStringConverter(Object value)
    • timeToStringConverter

      public static String timeToStringConverter(Object value)
    • timestampToStringConverter

      public static String timestampToStringConverter(Object value)
    • toZonedDateTime

      public static ZonedDateTime toZonedDateTime(long epochSeconds, long nanoAdjustment, ZoneId zoneId)
    • toField

      public static com.google.cloud.bigquery.Field toField(String name, Type type, @Nullable String comment)
    • convertToString

      public static Optional<String> convertToString(Type type, com.google.cloud.bigquery.StandardSQLTypeName bigqueryType, Object value)
    • toTrinoType

      public static Optional<Type> toTrinoType(com.google.cloud.bigquery.Field field)