@@ -448,21 +448,21 @@ absl::Status AdoptValuesInto(absl::Span<const DataSlice> values,
448448 return adoption_queue.AdoptInto (db);
449449}
450450
451- auto KodaErrorCausedByIncompableSchemaError ( const DataBagPtr& lhs_bag,
452- absl::Span<const DataSlice> slices,
453- const DataSlice& result_ds) {
451+ auto KodaErrorCausedByIncompatibleSchemaError (
452+ const DataBagPtr& lhs_bag, absl::Span<const DataSlice> slices,
453+ const DataSlice& result_ds) {
454454 return [&lhs_bag, slices, &result_ds](auto && status_like) {
455- return KodaErrorCausedByIncompableSchemaError (
455+ return KodaErrorCausedByIncompatibleSchemaError (
456456 std::forward<decltype (status_like)>(status_like), lhs_bag, slices,
457457 result_ds);
458458 };
459459}
460460
461- auto KodaErrorCausedByIncompableSchemaError (const DataBagPtr& lhs_bag,
462- const DataBagPtr& rhs_bag,
463- const DataSlice& ds) {
461+ auto KodaErrorCausedByIncompatibleSchemaError (const DataBagPtr& lhs_bag,
462+ const DataBagPtr& rhs_bag,
463+ const DataSlice& ds) {
464464 return [&lhs_bag, &rhs_bag, &ds](auto && status_like) {
465- return KodaErrorCausedByIncompableSchemaError (
465+ return KodaErrorCausedByIncompatibleSchemaError (
466466 std::forward<decltype (status_like)>(status_like), lhs_bag, rhs_bag, ds);
467467 };
468468}
@@ -496,7 +496,7 @@ absl::StatusOr<DataSlice> CreateEntitiesImpl(
496496 }
497497 ASSIGN_OR_RETURN (DataSlice res, create_entities_fn (schema_item));
498498 RETURN_IF_ERROR (res.SetAttrs (attr_names, values, overwrite_schema))
499- .With (KodaErrorCausedByIncompableSchemaError (db, values, res));
499+ .With (KodaErrorCausedByIncompatibleSchemaError (db, values, res));
500500 // Adopt into the databag only at the end to avoid garbage in the databag in
501501 // case of error.
502502 // NOTE: This will cause 2 merges of the same DataBag, if schema comes from
@@ -528,7 +528,7 @@ absl::StatusOr<DataSlice> CreateObjectsImpl(
528528 return absl::OkStatus ();
529529 }));
530530 RETURN_IF_ERROR (res.SetAttrs (attr_names, values))
531- .With (KodaErrorCausedByIncompableSchemaError (db, values, res));
531+ .With (KodaErrorCausedByIncompatibleSchemaError (db, values, res));
532532 // Adopt into the databag only at the end to avoid garbage in the databag
533533 // in case of error.
534534 RETURN_IF_ERROR (AdoptValuesInto (values, *db));
@@ -581,8 +581,8 @@ absl::StatusOr<DataSlice> EntityCreator::FromAttrs(
581581 CastOrUpdateSchema (values[i], schema_item, attr_names[i],
582582 overwrite_schema, db_mutable_impl),
583583 // Adds the db from schema to assemble readable error message.
584- KodaErrorCausedByIncompableSchemaError (_, db, values[i].GetBag (),
585- values[i]));
584+ KodaErrorCausedByIncompatibleSchemaError (_, db, values[i].GetBag (),
585+ values[i]));
586586 }
587587 ASSIGN_OR_RETURN (
588588 aligned_values, shape::Align (std::move (casted_values)),
@@ -802,7 +802,8 @@ absl::StatusOr<DataSlice> CreateUu(
802802 aligned_values.begin ()->GetShape (),
803803 std::move (schema_item), db));
804804 RETURN_IF_ERROR (ds.SetAttrs (attr_names, aligned_values, overwrite_schema))
805- .With (KodaErrorCausedByIncompableSchemaError (ds.GetBag (), values, ds));
805+ .With (
806+ KodaErrorCausedByIncompatibleSchemaError (ds.GetBag (), values, ds));
806807 // Adopt into the databag only at the end to avoid garbage in the
807808 // databag in case of error. NOTE: This will cause 2 merges of the
808809 // same DataBag, if schema comes from the same DataBag as values.
@@ -1240,8 +1241,8 @@ absl::StatusOr<DataSlice> CreateListShaped(
12401241 InitItemIdsForLists));
12411242 if (values.has_value ()) {
12421243 RETURN_IF_ERROR (result.AppendToList (*values))
1243- .With (KodaErrorCausedByIncompableSchemaError (result. GetBag (),
1244- values->GetBag (), result));
1244+ .With (KodaErrorCausedByIncompatibleSchemaError (
1245+ result. GetBag (), values->GetBag (), result));
12451246 }
12461247 return std::move (result);
12471248}
@@ -1282,8 +1283,8 @@ absl::StatusOr<DataSlice> CreateListLike(
12821283 InitItemIdsForLists));
12831284 if (values.has_value ()) {
12841285 RETURN_IF_ERROR (result.AppendToList (*values))
1285- .With (KodaErrorCausedByIncompableSchemaError (result. GetBag (),
1286- values->GetBag (), result));
1286+ .With (KodaErrorCausedByIncompatibleSchemaError (
1287+ result. GetBag (), values->GetBag (), result));
12871288 }
12881289 return result;
12891290}
0 commit comments