alamb commented on a change in pull request #1112: URL: https://github.com/apache/arrow-rs/pull/1112#discussion_r777230438
########## File path: arrow/src/csv/reader.rs ########## @@ -696,6 +738,39 @@ impl Parser for Date64Type { _ => None, } } + + fn parse_formatted(string: &str, format: &str) -> Option<i64> { + match Self::DATA_TYPE { + DataType::Date64 => { + use chrono::format::Fixed; + use chrono::format::StrftimeItems; + let fmt = StrftimeItems::new(format); + let has_zone = fmt.into_iter().any(|item| match item { Review comment: That is a cool idea -- I wonder if we could implement `Date64TypeWithZone` or something -- or move the `has_zone` attribute into `Date64Type` directly? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org