@@ -822,7 +822,8 @@ Table::remove_rows(const std::string_view& data) {
822822 if (promote) {
823823 std::stringstream ss;
824824 ss << " Cannot append value of type " << dtype_to_str (*promote)
825- << " to column of type " << dtype_to_str (col->get_dtype ())
825+ << " to column \" " << m_index << " \" of type " << dtype_to_str (col->get_dtype ())
826+ << " at index " << ii
826827 << std::endl;
827828 PSP_COMPLAIN_AND_ABORT (ss.str ());
828829 }
@@ -879,7 +880,8 @@ Table::remove_cols(const std::string_view& data) {
879880 if (promote) {
880881 std::stringstream ss;
881882 ss << " Cannot append value of type " << dtype_to_str (*promote)
882- << " to column of type " << dtype_to_str (col->get_dtype ())
883+ << " to column \" " << m_index << " \" of type " << dtype_to_str (col->get_dtype ())
884+ << " at index " << ii
883885 << std::endl;
884886 PSP_COMPLAIN_AND_ABORT (ss.str ());
885887 }
@@ -964,13 +966,15 @@ Table::update_cols(const std::string_view& data, std::uint32_t port_id) {
964966 LOG_DEBUG (" Ignoring column " << col_name);
965967 continue ;
966968 }
969+
967970 for (const auto & cell : column.value .GetArray ()) {
968971 auto col = data_table.get_column (col_name);
969972 auto promote = fill_column_json (col, ii, cell, true );
970973 if (promote) {
971974 std::stringstream ss;
972975 ss << " Cannot append value of type " << dtype_to_str (*promote)
973- << " to column of type " << dtype_to_str (col->get_dtype ())
976+ << " to column \" " << col_name << " \" of type " << dtype_to_str (col->get_dtype ())
977+ << " at index " << ii
974978 << std::endl;
975979 PSP_COMPLAIN_AND_ABORT (ss.str ());
976980 }
@@ -1189,7 +1193,8 @@ Table::update_rows(const std::string_view& data, std::uint32_t port_id) {
11891193 if (promote) {
11901194 std::stringstream ss;
11911195 ss << " Cannot append value of type " << dtype_to_str (*promote)
1192- << " to column of type " << dtype_to_str (col->get_dtype ())
1196+ << " to column \" " << col_name << " \" of type " << dtype_to_str (col->get_dtype ())
1197+ << " at index " << ii
11931198 << std::endl;
11941199 PSP_COMPLAIN_AND_ABORT (ss.str ());
11951200 }
@@ -1422,7 +1427,8 @@ Table::update_ndjson(const std::string_view& data, std::uint32_t port_id) {
14221427 if (promote) {
14231428 std::stringstream ss;
14241429 ss << " Cannot append value of type " << dtype_to_str (*promote)
1425- << " to column of type " << dtype_to_str (col->get_dtype ())
1430+ << " to column \" " << col_name << " \" of type " << dtype_to_str (col->get_dtype ())
1431+ << " at index " << ii
14261432 << std::endl;
14271433 PSP_COMPLAIN_AND_ABORT (ss.str ());
14281434 }
0 commit comments