X-Git-Url: https://code.communitydata.science/cdsc_reddit.git/blobdiff_plain/2d425600a813e2fb280023a5a870b5660c36ea22..2740f55915d6ecca7c5cd800747d9687c4cd9245:/comments_2_parquet_part2.py diff --git a/comments_2_parquet_part2.py b/comments_2_parquet_part2.py index 7b17251..62580ac 100755 --- a/comments_2_parquet_part2.py +++ b/comments_2_parquet_part2.py @@ -26,4 +26,4 @@ df2.write.parquet("/gscratch/comdata/output/reddit_comments_by_subreddit.parquet df = df.repartition('author') df3 = df.sort(["author","CreatedAt","subreddit","link_id","parent_id","Year","Month","Day"],ascending=True) df3 = df3.sortWithinPartitions(["author","CreatedAt","subreddit","link_id","parent_id","Year","Month","Day"],ascending=True) -df3.write.parquet("/gscratch/comdata/output/reddit_comments_by_author.parquet", mode='overwrite') +df3.write.parquet("/gscratch/comdata/output/reddit_comments_by_author.parquet", mode='overwrite',compression='snappy')