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