Skip to content

Commit

Permalink
skip null key
Browse files Browse the repository at this point in the history
  • Loading branch information
zclllyybb committed Feb 21, 2025
1 parent fd547d0 commit 1ced6eb
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,10 @@ PROPERTIES(

### 属性

当前字典仅有一项允许且必须出现的属性:

|属性名|值类型|含义|
|-|-|-|
|`date_lifetime`|整数,单位为秒|数据有效期。当该字典上次更新距今时间超过该值时,将会自动发起重新导入|
|属性名|值类型|含义|必须项|
|-|-|-|-|
|`date_lifetime`|整数,单位为秒|数据有效期。当该字典上次更新距今时间超过该值时,将会自动发起重新导入||
|`skip_null_key`|布尔值|向字典导入时如果 Key 列中出现 null 值,如果该值为 `true`,跳过该行数据,否则报错。缺省值为 `false`||

### 示例

Expand Down Expand Up @@ -116,9 +115,9 @@ PROPERTIES('data_lifetime' = '600');
- HASH_MAP 类型字典的 Key 列支持所有简单类型(即排除所有 Map、Array 等嵌套类型)。
- 作为 Key 列的列,**在源表中不得存在重复值**,否则字典导入数据时将报错。

2. Nullable 属性
2. Null 值处理

- 所有 Key 列必须为 NOT NULLABLE, Value 列无限制
- 字典的所有列都可以是 Nullable 列,但 Key 列不应当实际出现 null 值。如果出现,行为取决于[属性](#属性)当中的 `skip_null_key`

## 使用与管理

Expand Down

0 comments on commit 1ced6eb

Please sign in to comment.