TDengine/tests/army/query/function/ans/crc32.csv
Matteo Nicoli 063d07ef4e tests fix
2025-05-02 15:50:56 +02:00

3 KiB

1taos> select CRC32('hello')
2crc32('hello') |
3=================
4907060870 |
5taos> select CRC32('hello world')
6crc32('hello world') |
7=======================
8222957957 |
9taos> select CRC32('hello world!')
10crc32('hello world!') |
11========================
1262177901 |
13==========================================
141785960545 |
15taos> select CRC32('北京涛思数据科技有限公司')
16crc32('北京涛思数据科技有限公司') |
17================================================
181935136661 |
19taos> select CRC32('hello') from ts_4893.meters limit 5
20crc32('hello') |
21=================
22907060870 |
23907060870 |
24907060870 |
25907060870 |
26907060870 |
27taos> select CRC32('hello') + 1 from ts_4893.meters limit 1
28crc32('hello') + 1 |
29============================
30907060871 |
31taos> select CRC32('hello') + CRC32('hello') from ts_4893.meters limit 1
32crc32('hello') + crc32('hello') |
33==================================
341814121740 |
35taos> select cast(CRC32('hello') as VARCHAR)
36cast(crc32('hello') as varchar) |
37==================================
38907060870 |
39taos> select CRC32(cast('hello' as VARCHAR))
40crc32(cast('hello' as varchar)) |
41==================================
42907060870 |
43taos> select crc32('')
44crc32('') |
45==============
460 |
47taos> select crc32(NULL)
48crc32(null) |
49==============
50NULL |
51taos> select crc32(1234)
52crc32(1234) |
53==============
542615402659 |
55==============================
56true |
57taos> select crc32(1234.567)
58crc32(1234.567) |
59==================
602518325432 |
61taos> select crc32(1234.567) = crc32('1234.567')
62crc32(1234.567) = crc32('1234.567') |
63======================================
64true |
65taos> select crc32(1234.567 + 0.1) = crc32('1234.667')
66crc32(1234.567 + 0.1) = crc32('1234.667') |
67============================================
68true |
69===================================================================
70true |
71===================================================================
72true |