{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["platform-badges","admonition"]},"type":"markdown"},"seo":{"title":"Treasure AI Studio - クエリ結果テーブル","description":"StudioがTrinoクエリ結果を型付きカラム、フォーマット済み値、実行統計、エラー診断を含む構造化テーブルとしてレンダリングする方法を説明します。","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]},"llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"クエリ結果テーブル","__idx":0},"children":["クエリ結果テーブル"]},{"$$mdtype":"Tag","name":"PlatformBadges","attributes":{"platforms":["Web","Desktop"]},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["すべてのクエリ結果は、チャット内で読みやすい構造化テーブルとして表示されます。カラムの型、数値の配置、NULLの処理、実行統計が自動的にレンダリングされるため、スプレッドシートに切り替えることなく結果を確認できます。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリ結果テーブルは、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx query"]}," の生の出力からクライアント側でレンダリングされます。AIはクエリ出力を自動的に検出し、プレーンテキストではなく構造化テーブルとして表示します。追加の処理は必要ありません。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"目的","__idx":1},"children":["目的"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["カラムの型、フォーマット済み値、実行メタデータ、エラー診断など、チャットストリーム内でクエリ結果をインラインで読み取り、解釈します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":2},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure AI Studio にサインイン済みであること（",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/getting-started"},"children":["はじめに"]},"）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["クエリ実行が完了していること（",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/query/query-execution"},"children":["クエリ実行"]},"を参照）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Web またはDesktopのみ"]}," — クエリ結果テーブルはモバイルでは利用できません"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"テーブルのレイアウト","__idx":3},"children":["テーブルのレイアウト"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリ結果テーブルは、それを生成したツールコールの下に、チャット内でインライン表示されます。ストリーミング中に結果が検出されると、テーブルは自動的に展開されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"構造","__idx":4},"children":["構造"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"セクション"},"children":["セクション"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ヘッダー行"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["太字のカラム名と、各名前の下に小さいテキストで表示されるカラムの型（例：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["varchar"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bigint"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["double"]},"）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["データ行"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データ型に基づいてフォーマットされたクエリ結果"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["統計行"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["テーブル下部の実行メタデータ"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ヘッダー行は",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["固定表示"]},"されます — 長い結果セットをスクロールしても常に表示されます。テーブルの最大高さは300ピクセルで、大きな結果には縦スクロール、幅の広いテーブルには横スクロールが使用されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"カラムの型とフォーマット","__idx":5},"children":["カラムの型とフォーマット"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["テーブルは、クエリエンジンから報告されたカラムの型に基づいて値をフォーマットします。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"数値","__idx":6},"children":["数値"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["数値型のカラムは、カラムの視認性を高めるために",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["右揃え"]},"でタブ区切り数値フォーマットで表示されます。認識される数値型："]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["int"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bigint"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["double"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["float"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["decimal"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["smallint"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tinyint"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["real"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["long"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["number"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["その他のすべての型は左揃えで表示されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"特殊な値","__idx":7},"children":["特殊な値"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"値"},"children":["値"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"表示"},"children":["表示"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["NULL"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["イタリック体のミュートテキストで ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["NULL"]}," と表示"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["true"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["緑色のテキストで表示"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["false"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ミュートテキストで表示"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["文字列"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["そのまま表示"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"行のハイライト","__idx":8},"children":["行のハイライト"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["任意の行にカーソルを合わせると、背景が薄くハイライトされます — 多くのカラムを持つ幅の広いテーブルで行を追跡する際に便利です。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"実行統計","__idx":9},"children":["実行統計"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["結果テーブルの下に、クエリ実行に関するメタデータを示す統計行が表示されます。フォーマットは次のとおりです："]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["X rows"]}," · ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Processed Y rows"]}," · ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["in Z"]}," · ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Job N"]}]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"統計"},"children":["統計"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"例"},"children":["例"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["行数"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["返された行数"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["42 rows"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["処理行数"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Trinoエンジンがスキャンした合計行数"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Processed 1.2M rows"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["経過時間"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クエリ実行時間（レイテンシ）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["in 3.2s"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ジョブID"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Treasure AIのジョブ識別子"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Job 987654321"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["すべての統計がすべてのクエリで表示されるわけではありません。統計行には、クエリエンジンの出力から取得できるフィールドのみが表示されます。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Pro Tip"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ジョブIDを使用して、Treasure AIコンソールでクエリを検索し、詳細な実行プラン、リソース使用状況、ログを確認できます。返された行数に対して「処理行数」が多い場合は、パーティションプルーニングが適用されていない可能性があります — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/sql-skills:trino-optimizer"]}," を使用して診断してください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"エラー表示","__idx":10},"children":["エラー表示"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリが失敗した場合、結果テーブルは",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["エラーカード"]},"に置き換えられます："]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["エラーカードには以下が含まれます："]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"要素"},"children":["要素"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["警告アイコン"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["失敗を示す赤い三角形"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["「Query failed」 ラベル"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["赤色のヘッダーテキスト"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["SQL"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["実行されたクエリ（等幅フォント）"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["エラーメッセージ"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["クエリエンジンからの完全なエラーテキスト"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ジョブID"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Treasure AIのジョブ識別子（利用可能な場合）"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["よくあるエラーのシナリオ："]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"エラー"},"children":["エラー"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"原因"},"children":["原因"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"対処法"},"children":["対処法"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["テーブルが見つからない"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データベースまたはテーブル名が間違っている"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["AIに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx databases"]}," と ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx tables <db>"]}," を実行させて確認する"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["カラムが見つからない"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["カラム名のスペルミスまたは存在しないカラム"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["AIに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx describe <db.table>"]}," を実行させてスキーマを確認する"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["権限が拒否された"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データベースへのアクセス権限が不足している"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Treasure AIの管理者に連絡する"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["構文エラー"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["無効なSQL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エラーカードのSQLを確認して構文を修正する"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"コンテキスト内での結果の読み取り","__idx":11},"children":["コンテキスト内での結果の読み取り"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリ結果テーブルは、会話の流れの一部として表示されます。テーブルがレンダリングされた後、AIは通常、結果に基づいた分析や次のステップを提示します。例えば："]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ユーザーが質問します：「売上上位5社の顧客は？」"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["AIが実行します：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx query \"SELECT customer_id, SUM(revenue) AS total ... LIMIT 5\""]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["5行の結果テーブルがレンダリングされます"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["AIが要約します：「顧客ID 12345が合計売上$2.3Mでトップです...」"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリ出力は会話コンテキストの一部であるため、AIは後続のメッセージで結果を参照できます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"ツールコールとの統合","__idx":12},"children":["ツールコールとの統合"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリ結果は",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ツールコールインジケーター"]},"内に表示されます。各クエリ実行には以下が表示されます："]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ステータスアイコン"]}," — スピニング（実行中）、緑のチェックマーク（完了）、赤のX（エラー）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}," — ツールが実行している内容（例：Bashコマンドの説明）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["コマンドプレビュー"]}," — 等幅フォントで表示される完全なコマンド（1行に省略）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["展開/折りたたみ"]}," — クリックして完全なコマンドテキストと結果を切り替え"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["コピーボタン"]}," — ホバー時に表示され、コマンドテキストをクリップボードにコピー"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["実行時間バッジ"]}," — 1秒以上の場合に実行レイテンシを表示（例：「3.2s」）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["終了コードバッジ"]}," — コマンドがゼロ以外の終了コードを返した場合に「Exit 1」（赤）を表示"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリ結果はストリーミング中に検出されると自動的に展開されるため、クリックしなくてもテーブルが表示されます。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Technical Note"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["12行を超えるツールコール結果には「Show N more lines」リンクが表示されます。ただし、クエリ結果はこの省略を回避します — 常に独自の300pxスクロール可能なビューポートを持つ完全な ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["QueryResultTable"]}," コンポーネントとしてレンダリングされます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"現在の制限事項","__idx":13},"children":["現在の制限事項"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["クエリ結果テーブルは",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["クエリ出力をインラインで表示する"]},"ために設計されています。現在のリリースでは以下の機能は利用できません："]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ソート"]}," — レンダリングされたテーブルではカラムのソートができません。結果を並び替えるには、AIに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ORDER BY"]}," 句を追加してクエリを再実行するよう依頼してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["フィルタリング"]}," — クライアント側の行フィルタリングはありません。フィルタリングにはクエリに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["WHERE"]}," 句を追加してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ページネーション"]}," — 返されたすべての行がスクロール可能なビューポート（最大高さ300px）に表示されます。大きな結果セットには、クエリで ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["LIMIT"]}," を使用してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["エクスポート"]}," — テーブルからの直接CSV/Excelエクスポートはありません。結果をエクスポートするには、AIに ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx query --output results.csv \"...\""]}," を使用してファイルに出力を保存するよう依頼してください。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["カラムのリサイズ"]}," — カラム幅はコンテンツに基づいて固定されています。"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Pro Tip"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ソート、フィルタリング、リサイズなどのスプレッドシート機能を使用するには、AIにクエリ結果をCSVまたはXLSXファイルとして保存するよう依頼してください。その後、ソートとリサイズ可能なカラムをサポートする",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/files/file-viewers#spreadsheet-viewer"},"children":["スプレッドシートビューアー"]},"で開くことができます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"確認事項","__idx":14},"children":["確認事項"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"input","attributes":{"checked":false,"type":"checkbox","readOnly":true},"children":[]}," 各カラム名の下に型アノテーション（例：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bigint"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["varchar"]},"）が付いたカラムヘッダーが表示される"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"input","attributes":{"checked":false,"type":"checkbox","readOnly":true},"children":[]}," 数値カラムが右揃えで表示され、NULL値がイタリック体のミュートテキストで表示される"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"input","attributes":{"checked":false,"type":"checkbox","readOnly":true},"children":[]}," テーブルの下に行数と実行時間を含む統計行が表示される"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"トラブルシューティング","__idx":15},"children":["トラブルシューティング"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"問題"},"children":["問題"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"解決策"},"children":["解決策"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["テーブルがフォーマット済みテーブルではなく生のテキストで表示される"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["コマンドが ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx query"]},"（生のSQLクライアントではなく）を使用していることを確認してください。Studioが解析できる期待されるフォーマットが出力に含まれます"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["カラムの型が表示されない"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["型アノテーションはカラムヘッダーの下に表示されます。表示されない場合、クエリ出力にスキーマメタデータが含まれていない可能性があります — 直接コマンドではなくAIを通じてクエリを実行してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["統計行が表示されない"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["統計行は ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx query"]}," で実行されたクエリのみテーブルの下に表示されます。直接のSQL出力には実行メタデータが含まれない場合があります"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"次のステップ","__idx":16},"children":["次のステップ"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/query/query-execution"},"children":["クエリ実行"]}," — AIと直接コマンドを通じたクエリの実行"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/query/tdx-commands"},"children":["TDXコマンド"]}," — 完全なCLIコマンドリファレンス"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/files/file-viewers"},"children":["ファイルビューアー"]}," — エクスポートされた結果のスプレッドシートビューアー"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/visualization/charts"},"children":["チャートとデータビジュアライゼーション"]}," — クエリ結果の可視化"]}]}]},"headings":[{"value":"クエリ結果テーブル","id":"クエリ結果テーブル","depth":1},{"value":"目的","id":"目的","depth":2},{"value":"前提条件","id":"前提条件","depth":2},{"value":"テーブルのレイアウト","id":"テーブルのレイアウト","depth":2},{"value":"構造","id":"構造","depth":3},{"value":"カラムの型とフォーマット","id":"カラムの型とフォーマット","depth":2},{"value":"数値","id":"数値","depth":3},{"value":"特殊な値","id":"特殊な値","depth":3},{"value":"行のハイライト","id":"行のハイライト","depth":3},{"value":"実行統計","id":"実行統計","depth":2},{"value":"エラー表示","id":"エラー表示","depth":2},{"value":"コンテキスト内での結果の読み取り","id":"コンテキスト内での結果の読み取り","depth":2},{"value":"ツールコールとの統合","id":"ツールコールとの統合","depth":2},{"value":"現在の制限事項","id":"現在の制限事項","depth":2},{"value":"確認事項","id":"確認事項","depth":2},{"value":"トラブルシューティング","id":"トラブルシューティング","depth":2},{"value":"次のステップ","id":"次のステップ","depth":2}],"frontmatter":{"seo":{"title":"Treasure AI Studio - クエリ結果テーブル","description":"StudioがTrinoクエリ結果を型付きカラム、フォーマット済み値、実行統計、エラー診断を含む構造化テーブルとしてレンダリングする方法を説明します。"},"platforms":["Web","Desktop"]},"lastModified":"2026-05-11T06:01:24.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/ai-studio/query/query-results","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}