Mingyu Chen
8ad50bf745
[Bug] Fix bug that BE core will loading empty json array (#5349)
When loading json data like `[]` (an empty array). BE will crash with stack:
```
*** Aborted at 1612273824 (unix time) try "date -d @1612273824" if you are using GNU date ***
PC: @ 0xe0cce7 rapidjson::GenericValue<>::Accept<>()
*** SIGSEGV (@0xe) received by PID 36798 (TID 0x7f7812114700) from PID 14; stack trace: ***
@ 0x7f791b74b470 (unknown)
@ 0xe0cce7 rapidjson::GenericValue<>::Accept<>()
@ 0x169ff79 _ZN5doris10JsonReader17_print_json_valueB5cxx11ERKN9rapidjson12GenericValueINS1_4UTF8IcEENS1_19MemoryPoolAllocatorINS1_12CrtAllocatorEEEEE
@ 0x16a0689 doris::JsonReader::_write_values_by_jsonpath()
@ 0x16a2cb4 doris::JsonReader::_handle_flat_array_complex_json()
@ 0x16a3761 doris::JsonScanner::get_next()
@ 0x1659bd4 doris::BrokerScanNode::scanner_scan()
@ 0x165a671 doris::BrokerScanNode::scanner_worker()
@ 0x281f67f execute_native_thread_routine
@ 0x7f791b5001c3 start_thread
@ 0x7f791b7fd12d __clone
```
2021-02-07 22:38:15 +08:00
..
2021-02-06 22:04:48 +08:00
2020-02-26 10:57:57 +08:00
2021-02-01 00:10:57 +08:00
2020-11-28 18:36:49 +08:00
2021-02-07 22:38:15 +08:00
2021-01-21 12:09:09 +08:00
2019-10-31 10:32:06 +08:00
2020-11-28 18:36:49 +08:00
2021-01-21 12:09:09 +08:00
2021-02-06 22:04:48 +08:00
2021-02-07 22:37:48 +08:00
2020-11-28 18:36:49 +08:00
2021-02-03 13:23:30 +08:00
2021-01-21 12:09:09 +08:00
2020-11-28 18:36:49 +08:00
2020-11-28 18:36:49 +08:00
2020-12-03 09:33:26 +08:00
2021-02-04 09:21:54 +08:00