Skip to content

Commit 9b0b740

Browse files
committed
feat(cubesql): Print value of the date/time that couldn't be parsed
Signed-off-by: Alex Qyoun-ae <[email protected]>
1 parent b279611 commit 9b0b740

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rust/cubesql/cubesql/src/compile/date_parser.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ pub fn parse_date_str(s: &str) -> Result<NaiveDateTime, DataFusionError> {
1313
});
1414

1515
parsed.map_err(|e| {
16-
DataFusionError::Internal(format!("Can't parse date/time string literal: {}", e))
16+
DataFusionError::Internal(format!(
17+
"Can't parse date/time string literal {:?}: {}",
18+
s, e
19+
))
1720
})
1821
}

0 commit comments

Comments
 (0)