<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>SAM</author_name>
  <author_url>https://blog.hatena.ne.jp/SAM/</author_url>
  <blog_title>About connecting the dots.</blog_title>
  <blog_url>https://smrmkt.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>小ネタなんですが，なかなかググっても見つからず，あれこれと試行錯誤してしまったので，メモがわりに．要するに，gzip 圧縮してあるデータを読み出して，年月ごとにデータをパーティション分けして，結果を parquet 形式の 1 ファイルで書き出す，みたいな処理がしたいということです．結局 repartition() を使えばよかったので，以下のように yyyymm カラムを一時的に作って，パーティションを切りなおしてからそのカラムを落とすというテクを使いました．普通なら repartition(int) で直接パーティション数を指定すれば良いんでしょうけど，複数年月が分けられておらず固まったデ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsmrmkt.hatenablog.jp%2Fentry%2F2017%2F06%2F05%2F212041&quot; title=&quot;PySpark で書き出しデータのパーティション数を調節する - About connecting the dots.&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-06-05 21:20:41</published>
  <title>PySpark で書き出しデータのパーティション数を調節する</title>
  <type>rich</type>
  <url>https://smrmkt.hatenablog.jp/entry/2017/06/05/212041</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
