@@ -905,7 +905,7 @@ Table::update_cols(const std::string_view& data, std::uint32_t port_id) {
905905 }
906906
907907 t_uindex nrows = 0 ;
908- for (const auto & it : document.GetObject ()) {
908+ for (const auto & it : document.GetObj ()) {
909909 if (!it.value .IsArray ()) {
910910 PSP_COMPLAIN_AND_ABORT (" Malformed column" )
911911 }
@@ -940,14 +940,14 @@ Table::update_cols(const std::string_view& data, std::uint32_t port_id) {
940940
941941 auto schema = data_table.get_schema ();
942942
943- if (is_implicit && !document.GetObject ().HasMember (" __INDEX__" )) {
943+ if (is_implicit && !document.GetObj ().HasMember (" __INDEX__" )) {
944944 for (std::uint32_t ii = 0 ; ii < nrows; ii++) {
945945 psp_pkey_col->set_nth <std::uint32_t >(ii, (m_offset + ii) % m_limit);
946946 }
947947 }
948948
949949 // 3.) Fill table
950- for (const auto & column : document.GetObject ()) {
950+ for (const auto & column : document.GetObj ()) {
951951 t_uindex ii = 0 ;
952952 std::string_view col_name = column.name .GetString ();
953953 if (std::string_view{column.name .GetString ()} == " __INDEX__" ) {
@@ -1001,7 +1001,7 @@ Table::from_cols(
10011001 t_uindex nrows = 0 ;
10021002
10031003 // https://github.com/Tencent/rapidjson/issues/1994
1004- for (const auto & it : document.GetObject ()) {
1004+ for (const auto & it : document.GetObj ()) {
10051005 if (!it.value .IsArray ()) {
10061006 PSP_COMPLAIN_AND_ABORT (" Malformed column" )
10071007 }
@@ -1052,7 +1052,7 @@ Table::from_cols(
10521052 const auto & psp_okey_col = data_table.get_column (" psp_okey" );
10531053
10541054 // 3.) Fill table
1055- for (const auto & col : document.GetObject ()) {
1055+ for (const auto & col : document.GetObj ()) {
10561056 t_uindex ii = 0 ;
10571057 const auto & col_name = col.name .GetString ();
10581058 LOG_DEBUG (
@@ -1153,7 +1153,7 @@ Table::update_rows(const std::string_view& data, std::uint32_t port_id) {
11531153 }
11541154
11551155 // col_count = m_column_names.size();
1156- for (const auto & it : row.GetObject ()) {
1156+ for (const auto & it : row.GetObj ()) {
11571157 std::shared_ptr<t_column> col;
11581158 std::string_view col_name = it.name .GetString ();
11591159 if (std::string_view{it.name .GetString ()} == " __INDEX__" ) {
@@ -1246,12 +1246,12 @@ Table::from_rows(
12461246
12471247 [&]() {
12481248 for (const auto & row : document.GetArray ()) {
1249- for (const auto & col : row.GetObject ()) {
1249+ for (const auto & col : row.GetObj ()) {
12501250 columns_seen.insert (col.name .GetString ());
12511251 }
12521252
12531253 // https://github.com/Tencent/rapidjson/issues/1994
1254- for (const auto & col : row.GetObject ()) {
1254+ for (const auto & col : row.GetObj ()) {
12551255 if (col.name .GetString () == index) {
12561256 is_implicit = false ;
12571257 }
@@ -1307,7 +1307,7 @@ Table::from_rows(
13071307
13081308 // 3.) Fill table
13091309 for (const auto & row : document.GetArray ()) {
1310- for (const auto & it : row.GetObject ()) {
1310+ for (const auto & it : row.GetObj ()) {
13111311 auto col = data_table.get_column (it.name .GetString ());
13121312 const auto * col_name = it.name .GetString ();
13131313 const auto & cell = it.value ;
@@ -1399,7 +1399,7 @@ Table::update_ndjson(const std::string_view& data, std::uint32_t port_id) {
13991399 psp_pkey_col->set_nth <std::uint32_t >(ii, (ii + m_offset) % m_limit);
14001400 }
14011401
1402- for (const auto & it : document.GetObject ()) {
1402+ for (const auto & it : document.GetObj ()) {
14031403 std::shared_ptr<t_column> col;
14041404 std::string_view col_name = it.name .GetString ();
14051405 if (std::string_view{it.name .GetString ()} == " __INDEX__" ) {
@@ -1486,12 +1486,12 @@ Table::from_ndjson(
14861486 // enhancement we do for regular JSON. For now this only checks the first
14871487 // row.
14881488 [&]() {
1489- for (const auto & col : document.GetObject ()) {
1489+ for (const auto & col : document.GetObj ()) {
14901490 columns_seen.insert (col.name .GetString ());
14911491 }
14921492
14931493 // https://github.com/Tencent/rapidjson/issues/1994
1494- for (const auto & col : document.GetObject ()) {
1494+ for (const auto & col : document.GetObj ()) {
14951495 if (col.name .GetString () == index) {
14961496 is_implicit = false ;
14971497 }
@@ -1555,7 +1555,7 @@ Table::from_ndjson(
15551555 // 3.) Fill table
15561556 bool is_finished = false ;
15571557 while (!is_finished) {
1558- for (const auto & it : document.GetObject ()) {
1558+ for (const auto & it : document.GetObj ()) {
15591559 auto col = data_table.get_column (it.name .GetString ());
15601560 const auto * col_name = it.name .GetString ();
15611561 const auto & cell = it.value ;
0 commit comments