> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-detect-table-modification.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Looker は、BI、データアプリケーション、組み込みアナリティクスのためのエンタープライズ向けプラットフォームであり、リアルタイムでインサイトを探索・共有できます。

# Looker

export const PartnerBadge = () => {
  return <div className="PartnerBadge">
            <div className="PartnerBadgeIcon">
                <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
                    <polyline points="12.5 9.5 10 12 6 11 2.5 8.5" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <polyline points="4.54 4.41 8 3.5 11.46 4.41" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <path d="M2.15,3.78 L0.55,6.95 A0.5,0.5 0,0,0 0.77,7.62 L2.5,8.5 L4.54,4.41 L2.82,3.55 A0.5,0.5 0,0,0 2.15,3.78 Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <path d="M13.5,8.5 L15.23,7.62 A0.5,0.5 0,0,0 15.45,6.95 L13.85,3.78 A0.5,0.5 0,0,0 13.18,3.55 L11.46,4.41 Z" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <path d="M11.5,4.5 L9,4.5 L6.15,7.27 A0.5,0.5 0,0,0 6.24,8.05 C7.33,8.74 8.81,8.72 10,7.5 L12.5,9.5 L13.5,8.5" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                    <polyline points="7.75 13.5 5.15 12.85 3.5 11.67" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="1" />
                </svg>
            </div>
            パートナーインテグレーション
        </div>;
};

export const Image = ({img, alt, size = "lg"}) => {
  const normalizedSize = ["sm", "md", "lg"].includes(size) ? size : "lg";
  return <div className={`ch-image-${normalizedSize}`}>
      <Frame>
        <img src={img} alt={alt} />
      </Frame>
    </div>;
};

Looker は、公式の ClickHouse データソースを使用して、ClickHouse Cloud またはオンプレミス環境にデプロイされた ClickHouse に接続できます。

<div id="1-gather-your-connection-details">
  ## 1. 接続情報を確認する
</div>

HTTP(S) で ClickHouse に接続するには、次の情報が必要です。

| Parameter(s)              | Description                                               |
| ------------------------- | --------------------------------------------------------- |
| `HOST` and `PORT`         | 通常、TLS を使用する場合のポートは 8443、TLS を使用しない場合は 8123 です。           |
| `DATABASE NAME`           | デフォルトでは `default` という名前のデータベースがあります。接続先のデータベース名を使用してください。 |
| `USERNAME` and `PASSWORD` | デフォルトのユーザー名は `default` です。用途に応じたユーザー名を使用してください。           |

ClickHouse Cloud サービスの詳細は、ClickHouse Cloud コンソールで確認できます。
サービスを選択し、**Connect** をクリックします。

<Image img="https://mintcdn.com/private-7c7dfe99-detect-table-modification/0yJtAU6cqYAQlCWC/images/_snippets/cloud-connect-button.webp?fit=max&auto=format&n=0yJtAU6cqYAQlCWC&q=85&s=2d1e2340e1ddccf3199ca1e41eeba836" size="md" alt="ClickHouse Cloud サービスの接続ボタン" border width="998" height="932" data-path="images/_snippets/cloud-connect-button.webp" />

**HTTPS** を選択します。接続情報は `curl` コマンドの例として表示されます。

<Image img="https://mintcdn.com/private-7c7dfe99-detect-table-modification/0yJtAU6cqYAQlCWC/images/_snippets/connection-details-https.webp?fit=max&auto=format&n=0yJtAU6cqYAQlCWC&q=85&s=2ea2af378046d5ec87ea8e78de573bc1" size="md" alt="ClickHouse Cloud HTTPS 接続情報" border width="1320" height="1184" data-path="images/_snippets/connection-details-https.webp" />

セルフマネージド ClickHouse を使用している場合、接続情報は ClickHouse 管理者によって設定されます。

<div id="2-create-a-clickhouse-data-source">
  ## 2. ClickHouse データソースを作成する
</div>

Admin -> Database -> Connections に移動し、右上の「Add Connection」ボタンをクリックします。

<Image size="md" img="https://mintcdn.com/private-7c7dfe99-detect-table-modification/L7_COrR7NltKl_Va/images/integrations/data-visualization/looker_01.webp?fit=max&auto=format&n=L7_COrR7NltKl_Va&q=85&s=cb5846b6a77fb20c68023fab8a0e79b8" alt="Looker のデータベース管理インターフェイスで新しい接続を追加する" border width="1401" height="963" data-path="images/integrations/data-visualization/looker_01.webp" />

<br />

データソース名を入力し、dialect のドロップダウンから `ClickHouse` を選択します。フォームに認証情報を入力します。

<Image size="md" img="https://mintcdn.com/private-7c7dfe99-detect-table-modification/L7_COrR7NltKl_Va/images/integrations/data-visualization/looker_02.webp?fit=max&auto=format&n=L7_COrR7NltKl_Va&q=85&s=f708c905c47561747b4eb7ecaba82696" alt="Looker の接続フォームで ClickHouse の認証情報を指定する" border width="1454" height="1115" data-path="images/integrations/data-visualization/looker_02.webp" />

<br />

ClickHouse Cloud を使用している場合、またはデプロイメントで SSL が必要な場合は、追加設定で SSL を有効にしてください。

<Image size="md" img="https://mintcdn.com/private-7c7dfe99-detect-table-modification/L7_COrR7NltKl_Va/images/integrations/data-visualization/looker_03.webp?fit=max&auto=format&n=L7_COrR7NltKl_Va&q=85&s=79bb19b7f3e09c738dbd5fee0384bae0" alt="Looker の設定で ClickHouse 接続の SSL を有効にする" border width="1443" height="1116" data-path="images/integrations/data-visualization/looker_03.webp" />

<br />

まず接続をテストし、完了したら新しい ClickHouse データソースに接続します。

<Image size="md" img="https://mintcdn.com/private-7c7dfe99-detect-table-modification/L7_COrR7NltKl_Va/images/integrations/data-visualization/looker_04.webp?fit=max&auto=format&n=L7_COrR7NltKl_Va&q=85&s=14abf082cdd131287b20e914e4ebc77c" alt="ClickHouse データソースをテストして接続する" border width="1728" height="1210" data-path="images/integrations/data-visualization/looker_04.webp" />

<br />

これで、ClickHouse データソースを Looker プロジェクトに関連付けられるようになります。

<div id="3-known-limitations">
  ## 3. 既知の制限事項
</div>

1. 次のデータ型は、デフォルトで文字列として処理されます:
   * Array - JDBCドライバーの制限により、シリアライゼーションが想定どおりに機能しません
   * Decimal\* - モデル内で number に変更できます
   * LowCardinality(...) - モデル内で適切な型に変更できます
   * Enum8, Enum16
   * UUID
   * Tuple
   * Map
   * JSON
   * Nested
   * FixedString
   * Geo types
     * MultiPolygon
     * Polygon
     * Point
     * Ring
2. [Symmetric aggregate feature](https://cloud.google.com/looker/docs/reference/param-explore-symmetric-aggregates) はサポートされていません
3. [Full outer join](https://cloud.google.com/looker/docs/reference/param-explore-join-type#full_outer) は、ドライバーではまだ実装されていません
