apache / apache/gluten

[VL][1.2] Result mismatch of get_json_object when json string has newline

Open
#7,777 9 comments 0 reactions 0 assignees View on GitHub
bug triage
Dominant language
Scala
Stars
1.6k
Forks
657
Avg merge
2d 14h
Merged PRs (30d)
80

Description

### Backend

VL (Velox)

### Bug description

sql:
```
select get_json_object('{"c1":"test\ntest"}', '$.c1')
```

result of gluten 1.2.0 with velox:
```
+--------------------------------------------+--+
| get_json_object({"c1":"test
test"}, $.c1) |
+--------------------------------------------+--+
| NULL |
+--------------------------------------------+--+
```

result of valilla spark:
```
+--------------------------------------------+--+
| get_json_object({"c1":"test
test"}, $.c1) |
+--------------------------------------------+--+
| test
test |
+--------------------------------------------+--+
```

### Spark version

None

### Spark configurations

_No response_

### System information

_No response_

### Relevant logs

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.