aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs/common/unicode_base/test/cases/TryToUint64.sql
blob: b2f4fa850ab79ca50524adce2c69bc2216458f33 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
SELECT
    Unicode::TryToUint64("hell", 10);

SELECT
    Unicode::TryToUint64("01238", 8);

SELECT
    Unicode::TryToUint64("0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF", 16);

SELECT
    Unicode::TryToUint64("0x1234abcd", 16),
    Unicode::TryToUint64("0X4", 16),
    Unicode::TryToUint64("0644", 8),
    Unicode::TryToUint64("0101010", 16),
    Unicode::TryToUint64("0101010", 2),
    Unicode::TryToUint64("0101010", 10),
    Unicode::TryToUint64("101", 10);