tensorflow_io/core/kernels/avro/utils/avro_parser.cc
// This implementation assumes there is at least one expected type
This implementation assumes there is at least one expected type
This implementation assumes there is at least one expected type
string TypeErrorMessage(const std::set<avro::Type>& expected,
                        avro::Type actual) {
  string message = "";
  for (avro::Type t : expected) {
    message += ", '" + toString(t) + "'";
  }
  return "Expected types: " + message.substr(2) + " but got type " +
         toString(actual) + ".";
}
string TypeErrorMessage ( const std :: set < avro :: Type > & expected , avro :: Type actual ) { string message = " " ; for ( avro :: Type t : expected ) { message += " " + toString ( t ) + " " ; } return " " + message . substr ( 2 ) + " " + toString ( actual ) + " " ; }
This implementation assumes there is at least one expected type
This implementation assumes there is at least one expected type
// Remove 2 for leading comma and blank -- here we assume there is at least // one