MCPcopy Create free account
hub / github.com/apache/impala / ExtractYearMonthDay

Method ExtractYearMonthDay

be/src/runtime/datetime-iso-sql-format-parser.cc:420–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420bool IsoSqlFormatParser::Iso8601WeekBasedDateParseResult::ExtractYearMonthDay(
421 DateTimeParseResult* result) const {
422 DCHECK(result != nullptr);
423 DCHECK(IsSet());
424 DateValue dv = DateValue::CreateFromIso8601WeekBasedDateVals(year, week_of_year,
425 day_of_week);
426 return dv.ToYearMonthDay(&result->year, &result->month, &result->day);
427}
428
429}
430}

Callers 1

ParseDateTimeMethod · 0.80

Calls 1

ToYearMonthDayMethod · 0.80

Tested by

no test coverage detected