Closed Hoeze closed 3 months ago
Hi @Hoeze
I had the same issue, the VCF writer does not support LongType() for INFO
fields
The workaround is to cast to LongType() INFO
fields to IntegerType()
e.g.
from pyspark.sql.types import *
import pyspark.sql.functions as fx
vcf_df = vcf_df.withColumn("INFO_test", fx.col("INFO_test").cast(IntegerType())
I'll see if I can fix this.
Example:
Fails with: