返回首页

gbase数据、南大通用产品文档:GBase8a_t_gcluster_kafka_null_transform

更新日期:2024年09月11日

取值:[0|1]
默认值:0
说明:kafka 消息内容中null 的表示和识别
null 在json 里怎么表示的问题,最标准的应该写"A":null,有些用户json 里写的是
"A"="",当打开此参数,consumer 会自动把""转换为null。

GBase 8a MPP Cluster 参数手册
文档版本2022-06-07
南大通用数据技术股份有限公司
17
修改方式:
可使用set 语句修改值也可在配置文件中修改值。
适用于session、
global
范围均可。

require_ssl
参数说明:设置服务器端是否强制要求SSL 连接,该参数只有当参数ssl 为on 时才有
效。请在使用这个选项之前阅读使用gsql 连接。
该参数属于SIGHUP 类型参数,请参考表15-1 中对应设置方法进行设置。
取值范围:布尔型
on 表示服务器端强制要求SSL 连接。
off 表示服务器端对是否通过SSL 连接不作强制要求。
须知:
GBase 8c 目前支持SSL 的场景为客户端连接数据库主节点场景,该参数目前建议只在
数据库主节点中开启。
默认值:off

函数ts_parse 可以直接测试文本搜索解析器。
ts_parse(parser_name text, document text,
OUT tokid integer, OUT token text) returns setof record
ts_parse 解析指定的document 并返回一系列的记录,一条记录代表一个解析生成的
token。每条记录包括标识token 类型的tokid,及token 文本。例如:
gbase=#SELECT * FROM ts_parse('default', '123 - a number');
tokid | token
-------+--------
22 | 123
12 |
12 | -
1 | a
12 |
1 | number
(6 rows)
函数ts_token_type 返回指定解析器的token 类型及其描述信息。
ts_token_type(parser_name text, OUT tokid integer,
OUT alias text, OUT description text) returns setof record

GBase 8c SQL 参考手册
南大通用数据技术股份有限公司
665
ts_token_type 返回一个表,这个表描述了指定解析器可以识别的每种token 类型。对于
每个token 类型,表中给出了整数类型的tokid--用于解析器标记对应的token 类型;alias—
—命名分词器命令中的token 类型;及简单描述。比如:
gbase=#SELECT * FROM ts_token_type('default');
tokid |
alias
|
description
-------+-----------------+------------------------------------------
1 | asciiword
| Word, all ASCII
2 | word
| Word, all letters
3 | numword
| Word, letters and digits
4 | email
| Email address
5 | url
| URL
6 | host
| Host
7 | sfloat
| Scientific notation
8 | version
| Version number
9 | hword_numpart
| Hyphenated word part, letters and digits
10 | hword_part
| Hyphenated word part, all letters
11 | hword_asciipart | Hyphenated word part, all ASCII
12 | blank
| Space symbols
13 | tag
| XML tag
14 | protocol
| Protocol head
15 | numhword
| Hyphenated word, letters and digits
16 | asciihword
| Hyphenated word, all ASCII
17 | hword
| Hyphenated word, all letters
18 | url_path
| URL path
19 | file
| File or path name
20 | float
| Decimal notation
21 | int
| Signed integer
22 | uint
| Unsigned integer
23 | entity
| XML entity
(23 rows)