Commit dbe3395
authored
docs: Update
## Which issue does this PR close?
N/A.
## Rationale for this change
While reviewing apache/datafusion-python#1461, I
noticed that an example in the `map_extract` function was wrong:
```sql
-- example
SELECT map_extract(MAP {'x': 10, 'y': NULL, 'z': 30}, 'y');
----
[]
-- datafusion
SELECT map_extract(MAP {'x': 10, 'y': NULL, 'z': 30}, 'y');
----
[NULL]
```
## What changes are included in this PR?
- Fixed the previous example.
- Also added a new example showing a `map_extract` on an empty key.
## Are these changes tested?
Yes.
## Are there any user-facing changes?
No.map_extract examples (#21360)1 parent 8dedd12 commit dbe3395
File tree
2 files changed
+10
-0
lines changed- datafusion/functions-nested/src
- docs/source/user-guide/sql
2 files changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5039 | 5039 | | |
5040 | 5040 | | |
5041 | 5041 | | |
| 5042 | + | |
| 5043 | + | |
| 5044 | + | |
| 5045 | + | |
| 5046 | + | |
5042 | 5047 | | |
5043 | 5048 | | |
5044 | 5049 | | |
| |||
0 commit comments