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

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -