Skip to content

[doc]explode func#1831

Merged
KassieZ merged 4 commits intoapache:masterfrom
yuanyuan8983:explode-func
Feb 6, 2025
Merged

[doc]explode func#1831
KassieZ merged 4 commits intoapache:masterfrom
yuanyuan8983:explode-func

Conversation

@yuanyuan8983
Copy link
Contributor

@yuanyuan8983 yuanyuan8983 commented Jan 16, 2025

Versions

  • dev
  • 3.0
  • 2.1
  • 2.0

Languages

  • Chinese
  • English

Docs Checklist

  • Checked by AI
  • Test Cases Built

@yuanyuan8983 yuanyuan8983 changed the title explode func [doc]explode func Jan 16, 2025
Copy link
Contributor

@morrySnow morrySnow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在第一个文档提了建议。后面文档都有同样问题,统一修改一遍


| Parameter | Description |
| -- | -- |
| `<json>` | json type |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

语法里面是 这里是
两个要保持一致

(2, '{}'),
(3, NULL);

mysql> select * from example;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

去掉prompt

Suggested change
mysql> select * from example;
select * from example;

mysql> SELECT id, k, v
-> FROM example
-> LATERAL VIEW explode_json_object_outer(value_json) exploded_table AS k, v;
+------+------+----------+
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

结果和查询要分到两个code block中

Comment on lines +103 to +104
### Keywords
POSEXPLODE,POSEXPLODE_OUTER
EXPLODE_JSON_OBJECT,EXPLODE_JSON_OBJECT_OUTER,JSON No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

去掉keywords 章节

`explode_map_outer` If the map is empty or NULL, explode_map_outer will retain the record with the empty or NULL map and return a row with NULL values.

## Examples
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sql部分需要使用

```sql

@KassieZ KassieZ added the has comments Some comments not resolved yet label Jan 17, 2025
@morrySnow morrySnow self-requested a review January 17, 2025 12:13
Copy link
Contributor

@morrySnow morrySnow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

explode_bitmap 和 explode_bitmap_outer 合成一篇。其他类似。
因为这是一组函数,他们唯一的区别就是要不要补充 null


## Syntax

`explode_bitmap_outer(<bitmap>)`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 使用code block 不要用 inline code
  2. 函数名大写
Suggested change
`explode_bitmap_outer(<bitmap>)`
`EXPLODE_BITMAP_OUTER(<bitmap>)`

@KassieZ KassieZ merged commit 7931928 into apache:master Feb 6, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants