一部の顧客は、計算済みインサイトで SQL 式を実行したときに意図した結果が表示されず、クエリエディタを使用してクエリを検証または調整することがあります。同一(またはほぼ同一)のクエリが2つの間で異なる結果を返すまれなケースがあります。これは、機能がクエリを実行するために2つの異なる SQL エンジンを使用しているためです。 クエリエディタは、アドホッククエリ用に最適化された SQL エンジンを使用し、メモリや計算能力の使用方法の効率性により、より高速に実行できます。一方、計算済みインサイトは、分散データと分散コンピューティングに適した SQL エンジンを使用します。 2つの異なる SQL エンジンが使用されているため、一部の関数がある環境ではサポートされ、別の環境ではサポートされないことに気付くかもしれません。また、両方の環境で機能する一部の関数がわずかに異なる動作を示すことに気付くかもしれません。
例1: 顧客は、行のセットのランクまたは順序を生成するクエリを作成し、最小または最初の結果を選択しようとしています。次に、計算済みインサイトで FIRST 関数を使用しますが、これがクエリエディタでサポートされていないことを確認し、テストを実行するために MIN 関数(およびクエリの潜在的な書き換え)を使用する必要があります。
例2: 顧客は、一部のフィールドに余分な非表示文字が含まれている可能性があり、削除する必要があるデータをインポートしました。クエリエディタで RTRIM をテストして動作することを確認しますが、計算済みインサイトでは異なる結果が表示されます。これは、余分な文字がスペースではなくタブである場合に発生する可能性があります。違いは、クエリエディタの SQL エンジンがスペースとタブの両方を削除するのに対し、計算済みインサイトの SQL エンジンはスペースのみを削除するためです。
002569543

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.