mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-20 06:50:37 +00:00
feat(copy_to_csv): add date_format/timestamp_format/time_format. (#6995)
feat(copy_to_csv): add `date_format` and so on to `Copy ... to with` syntax Signed-off-by: Yihai Lin <yihai-lin@foxmail.com>
This commit is contained in:
@@ -160,6 +160,12 @@ impl CopyTableArgument {
|
||||
.get(common_datasource::file_format::FILE_PATTERN)
|
||||
.cloned()
|
||||
}
|
||||
|
||||
pub fn timestamp_pattern(&self) -> Option<String> {
|
||||
self.with
|
||||
.get(common_datasource::file_format::TIMESTAMP_FORMAT)
|
||||
.cloned()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in New Issue
Block a user