TO_CENTURIES (Lakehouse v1)
指定した世紀数を Interval 型に変換します。
- 入力には、正の整数、ゼロ、負の整数を指定できます。
Analyze の構文
Section titled “Analyze の構文”func.to_centuries(<centuries>)Analyze の例
Section titled “Analyze の例”func.to_centuries(2)┌──────────────────────────────────────────────────────┐│ func.to_centuries(2) │├──────────────────────────────────────────────────────┤│ 200 years │└──────────────────────────────────────────────────────┘TO_CENTURIES(<centuries>)Interval(年で表されます)。
SELECT TO_CENTURIES(2), TO_CENTURIES(0), TO_CENTURIES(-2);
┌───────────────────────────────────────────────────────┐│ to_centuries(2) │ to_centuries(0) │ to_centuries(- 2) │├─────────────────┼─────────────────┼───────────────────┤│ 200 years │ 00:00:00 │ -200 years │└───────────────────────────────────────────────────────┘