mirror of
https://github.com/OMGeeky/google_bigquery_v2.git
synced 2026-01-20 18:41:06 +01:00
a tiny bit more info for the 'Unknown type: ' warning
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "google_bigquery_v2"
|
||||
version = "0.2.7"
|
||||
version = "0.2.8"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
@@ -142,9 +142,10 @@ pub fn convert_value_to_string(value: Value) -> Result<String> {
|
||||
Value::Number(num) => Ok(num.to_string()),
|
||||
Value::String(s) => Ok(s),
|
||||
_ => {
|
||||
warn!("Unknown type: {:?}", value);
|
||||
//TODO: check if this is correct with for example 'DATETIME' values
|
||||
Ok(value.to_string())
|
||||
let values_string = value.to_string();
|
||||
warn!("Unknown type: {:?} => {}", value, values_string);
|
||||
Ok(values_string)
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user