in sql_utils/public/functions/cast_date_time.cc [453:484]
bool IsSupportedForParsing(const DateTimeFormatElement& format_element) {
switch (format_element.type) {
case FormatElementType::kSimpleLiteral:
case FormatElementType::kDoubleQuotedLiteral:
case FormatElementType::kWhitespace:
case FormatElementType::kYYYY:
case FormatElementType::kYYY:
case FormatElementType::kYY:
case FormatElementType::kY:
case FormatElementType::kRRRR:
case FormatElementType::kRR:
case FormatElementType::kYCommaYYY:
case FormatElementType::kMM:
case FormatElementType::kMON:
case FormatElementType::kMONTH:
case FormatElementType::kDD:
case FormatElementType::kHH:
case FormatElementType::kHH12:
case FormatElementType::kHH24:
case FormatElementType::kMI:
case FormatElementType::kSS:
case FormatElementType::kSSSSS:
case FormatElementType::kFFN:
case FormatElementType::kAMWithDots:
case FormatElementType::kPMWithDots:
case FormatElementType::kTZH:
case FormatElementType::kTZM:
return true;
default:
return false;
}
}