in src/main/java/com/uber/uberscriptquery/util/SqlUtils.java [31:57]
public static boolean isTableNotExistExceptionMessage(String msg, String table) {
{
// Table 'dataquerier.airport_eta_ata_summary' doesn't exist
Pattern p = Pattern.compile(String.format("^[Tt]able .*%s.* doesn't exist$$", table));
Matcher m = p.matcher(msg);
if (m.matches()) {
return true;
}
}
{
// Table xxx not exist
Pattern p = Pattern.compile(String.format("^[Tt]able .*%s.* not exist$$", table));
Matcher m = p.matcher(msg);
if (m.matches()) {
return true;
}
}
{
// Table xxx not found
Pattern p = Pattern.compile(String.format("^Table .*%s.* not found.*", table), Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE | Pattern.DOTALL);
Matcher m = p.matcher(msg);
if (m.matches()) {
return true;
}
}
return false;
}