a tiny bit more info for the 'Unknown type: ' warning

This commit is contained in:
OMGeeky
2023-07-14 15:09:28 +02:00
parent 17e00b297a
commit 9176ac9095
2 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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)
}
}
};