apache spark - Saving empty data frame to parquet -
i have problem saving empty table parquet. in case schema not preserved , table cannot read afterwards.
mydf.write.format("parquet").partitionby("part_id").save("aa")
my sql queries relying on same set of tables, , in case of table empty , therefor cannot read queries not work. way save empty table metadata ?
with best regards, michael
i have removed partitionby call , after metadata saved correctly
Comments
Post a Comment