<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lcl-engineer</author_name>
  <author_url>https://blog.hatena.ne.jp/lcl-engineer/</author_url>
  <blog_title>LCL Engineers' Blog</blog_title>
  <blog_url>https://techblog.lclco.com/</blog_url>
  <categories>
    <anon>Redash</anon>
  </categories>
  <description>Redashでデータを加工する際に、1つのカラムに含まれるJSONの中身を取り扱う必要がありました。しかし、単純にクエリを叩くだけではJSONの中身を参照できません。 そこで、Redashの機能の一つであるPython Data Sourceを利用してJSONを解析し、各データを1つのカラムで取得・加工できるようにしてみました。 準備 Python Scriptを有効化するために/opt/redash/.envを修正 export REDASH_ADDITIONAL_QUERY_RUNNERS=redash.query_runner.python 設定を反映 $ sudo supervisor…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechblog.lclco.com%2Fentry%2F2017%2F12%2F31%2F010456&quot; title=&quot;Redashで1つのカラムに保存されたJSONデータを取り扱う - LCL Engineers&amp;#39; Blog&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/l/lcl-engineer/20171231/20171231005613.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-12-31 01:04:56</published>
  <title>Redashで1つのカラムに保存されたJSONデータを取り扱う</title>
  <type>rich</type>
  <url>https://techblog.lclco.com/entry/2017/12/31/010456</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
