注:この問題は、同じシナリオを提示する一連の問題の一部です。このシリーズの各問題には、提示された目標を満たす可能性のある独自の解答が含まれています。問題セットによっては、複数の正解がある場合もあれば、正解がない場合もあります。
このセクションの質問に回答すると、後から戻って回答することはできません。そのため、これらの質問は復習画面には表示されません。
Fabricテナントには、Lakehouselという名前の湖畔の家が含まれています。Lakehouselには、Customerという名前のDeltaテーブルが含まれています。
顧客テーブルを照会したところ、クエリの実行速度が遅いことがわかりました。テーブルのメンテナンスが行われていないのではないかと疑われます。
顧客に対してメンテナンス作業が実施されたかどうかを確認する必要があります。
解決策:以下の Spark SQL ステートメントを実行します。
顧客の詳細を説明する
これは目標を達成していると言えるでしょうか?
正解:B
The command:
DESCRIBE DETAIL Customer
Returns metadata about the Delta table, such as format, schema, partitioning, size, number of files, and creation/modification timestamps.
However, it does not provide information about whether maintenance tasks (such as OPTIMIZE , VACUUM , or Z-Ordering) were performed on the table.
To check maintenance history, you would typically use:
DESCRIBE HISTORY Customer
which shows operations executed on the table (e.g., OPTIMIZE, VACUUM, MERGE).
Since DESCRIBE DETAIL does not satisfy the requirement, the solution does not meet the goal.
Reference:
DESCRIBE DETAIL in Delta Lake
DESCRIBE HISTORY in Delta Lake