DIVNULL(Lakehouse v1)
最初の数を 2 番目の数で割った商を返します。2 番目の数が 0 または NULL の場合は NULL を返します。
関連項目:
Analyze 構文
Section titled “Analyze 構文”func.divnull(<numerator>, <denominator>)Analyze の例
Section titled “Analyze の例”func.divnull(20, 6), func.divnull(20, 0), func.divnull(20, null)
┌───────────────────────────────────────────────────────────────────┐│ func.divnull(20, 6)│ func.divnull(20, 0) │ func.divnull(20, null) │├────────────────────┼─────────────────────┼────────────────────────┤│ 3.3333333333333335 │ NULL │ NULL │└───────────────────────────────────────────────────────────────────┘SQL 構文
Section titled “SQL 構文”DIVNULL(<number1>, <number2>)SQL の例
Section titled “SQL の例”SELECT DIVNULL(20, 6), DIVNULL(20, 0), DIVNULL(20, NULL);
┌─────────────────────────────────────────────────────────┐│ divnull(20, 6) │ divnull(20, 0) │ divnull(20, null) │├────────────────────┼────────────────┼───────────────────┤│ 3.3333333333333335 │ NULL │ NULL │└─────────────────────────────────────────────────────────┘