0

我在 presto-client 提供的 sql 控制台上运行 pgsql 查询,该控制台连接到在postgres之上运行的 presto-server 。查询的结果集仅包含非citext类型的列。

DataDetails表说明:

                                   Table "public.datadetails"
      Column      |   Type   |          Modifiers           | Storage  | Stats target | Description 
------------------+----------+------------------------------+----------+--------------+-------------
 data_sequence_id | bigint   | not null                     | plain    |              | 
 key              | citext   | not null                     | extended |              | 
 uploaded_by      | bigint   | not null                     | plain    |              | 
 uploaded_time    | bigint   | not null                     | plain    |              | 
 modified_by      | bigint   |                              | plain    |              | 
 modified_time    | bigint   |                              | plain    |              | 
 retrieved_by     | bigint   |                              | plain    |              | 
 retrieved_time   | bigint   |                              | plain    |              | 
 file_name        | citext   | not null                     | extended |              | 
 file_type        | citext   | not null                     | extended |              | 
 file_size        | bigint   | not null default 0::bigint   | plain    |              | 
Indexes:
    "datadetails_pk1" PRIMARY KEY, btree (data_sequence_id)
    "datadetails_uk0" UNIQUE CONSTRAINT, btree (key)
Check constraints:
    "datadetails_file_name_c" CHECK (length(file_name::text) <= 32)
    "datadetails_file_type_c" CHECK (length(file_type::text) <= 2048)
    "datadetails_key_c" CHECK (length(key::text) <= 64)

Presto-Client 中的查询结果:

presto:public> select * from datadetails;

 data_sequence_id | uploaded_by | uploaded_time | modified_by | modified_time | retrieved_by | retrieved_time | file_size |
------------------+-------------+---------------+-------------+---------------+--------------+----------------+-----------+
    2000000000007 |    15062270 | 1586416286363 |           0 |             0 |            0 |              0 |        61 |
    2000000000011 |    15062270 | 1586416299159 |           0 |             0 |     15062270 |  1586417517045 |        36 |
(2 rows)

Query 20200410_130419_00017_gmjgh, FINISHED, 1 node
Splits: 17 total, 17 done (100.00%)
0:00 [2 rows, 0B] [10 rows/s, 0B/s]

在上面的结果集中,显然缺少citext类型的列。

presto 是否支持 citext 数据类型或是否有任何配置可以使用 presto 处理 citext 数据类型?

Postgres:PostgreSQL 9.4.0-relocatable (Red Hat 4.4.7-11),64 位

Presto-服务器:presto-server-0.230

Presto 客户端:presto-cli-332

4

0 回答 0