In an AI notebook, I have the following:
%%R
tempdf %>% summary() %>% print()
DBI::dbWriteTable(
conn=clinvar_conn,
name=table_name,
value=tempdf,
overwrite=T
)
Giving
CHROM POS ID REF
Length:775501 Length:775501 Length:775501 Length:775501
Class :character Class :character Class :character Class :character
Mode :character Mode :character Mode :character Mode :character
ALT QUAL FILTER INFO
Length:775501 Length:775501 Length:775501 Length:775501
Class :character Class :character Class :character Class :character
Mode :character Mode :character Mode :character Mode :character
Error: Job 'eacri-genomics.job_om9Un5yZVSHjLpt0d4ZzyF743zjy.US' failed
✖ Error while reading data, error message: JSON processing encountered too many errors, giving up. Rows: 740479; errors: 1; max bad: 0; error percent: 0 [invalid]
✖ Error while reading data, error message: JSON parsing error in row starting at position 392688729: Could not convert value 'string_value: "X"' to integer. Field: CHROM; Value: X [invalid]
Run `rlang::last_error()` to see where the error occurred.
I made sure to cast all the data as character. Why is it trying to convert "X" to an integer?