<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yohei-a</author_name>
  <author_url>https://blog.hatena.ne.jp/yohei-a/</author_url>
  <blog_title>ablog</blog_title>
  <blog_url>https://yohei-a.hatenablog.jp/</blog_url>
  <categories>
    <anon>AWS</anon>
    <anon>Glue</anon>
    <anon>Spark</anon>
  </categories>
  <description>S3 にある Parquet ファイルを Glue の Crawler でクロールしてテーブルを作成し、文字列型のカラムを数値型に変更するとエラーになるという当たりまり前（Parquet は項目定義に型を持っているバイナリファイルのため）のことを検証した。型を変えたい場合は、Parquet ファイルを作り直す必要がある。 string-&gt;decimal &gt;&gt;&gt; from pyspark.sql import SparkSession &gt;&gt;&gt; spark = SparkSession.builder. \ appName(&quot;ExamplePySparkSubmitTask&quot;). \ config…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohei-a.hatenablog.jp%2Fentry%2F20230531%2F1685461001&quot; title=&quot;Parquet はファイルでカラムの型を持っているため、Glue カタログだけ変更しても型を変えることはできない - ablog&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>https://cdn-ak.f.st-hatena.com/images/fotolife/y/yohei-a/20230531/20230531003633.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-05-31 00:36:41</published>
  <title>Parquet はファイルでカラムの型を持っているため、Glue カタログだけ変更しても型を変えることはできない</title>
  <type>rich</type>
  <url>https://yohei-a.hatenablog.jp/entry/20230531/1685461001</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
