You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
execute_update(&mut connection,"CREATE TABLE IF NOT EXISTS datafusion.public.example (c1 INT, c2 VARCHAR) AS VALUES(1,'HELLO'),(2,'DATAFUSION'),(3,'!')");
139
+
execute_update(
140
+
&mut connection,
141
+
"CREATE TABLE IF NOT EXISTS datafusion.public.example (c1 INT, c2 VARCHAR) AS VALUES(1,'HELLO'),(2,'DATAFUSION'),(3,'!')",
142
+
);
140
143
141
144
let batch = execute_sql_query(&mut connection,"SELECT * FROM datafusion.public.example");
142
145
@@ -148,7 +151,10 @@ fn test_execute_sql() {
148
151
fntest_ingest(){
149
152
letmut connection = get_connection(None);
150
153
151
-
execute_update(&mut connection,"CREATE TABLE IF NOT EXISTS datafusion.public.example (c1 INT, c2 VARCHAR) AS VALUES(1,'HELLO'),(2,'DATAFUSION'),(3,'!')");
154
+
execute_update(
155
+
&mut connection,
156
+
"CREATE TABLE IF NOT EXISTS datafusion.public.example (c1 INT, c2 VARCHAR) AS VALUES(1,'HELLO'),(2,'DATAFUSION'),(3,'!')",
157
+
);
152
158
153
159
let batch = execute_sql_query(&mut connection,"SELECT * FROM datafusion.public.example");
154
160
@@ -174,7 +180,10 @@ fn test_ingest() {
174
180
fntest_execute_substrait(){
175
181
letmut connection = get_connection(None);
176
182
177
-
execute_update(&mut connection,"CREATE TABLE IF NOT EXISTS datafusion.public.example (c1 INT, c2 VARCHAR) AS VALUES(1,'HELLO'),(2,'DATAFUSION'),(3,'!')");
183
+
execute_update(
184
+
&mut connection,
185
+
"CREATE TABLE IF NOT EXISTS datafusion.public.example (c1 INT, c2 VARCHAR) AS VALUES(1,'HELLO'),(2,'DATAFUSION'),(3,'!')",
execute_update(&mut connection,"CREATE TABLE IF NOT EXISTS datafusion.public.example (c1 INT, c2 VARCHAR) AS VALUES(1,'HELLO'),(2,'DATAFUSION'),(3,'!')");
215
+
execute_update(
216
+
&mut connection,
217
+
"CREATE TABLE IF NOT EXISTS datafusion.public.example (c1 INT, c2 VARCHAR) AS VALUES(1,'HELLO'),(2,'DATAFUSION'),(3,'!')",
218
+
);
207
219
208
220
let batch = execute_sql_query(&mut connection,"SELECT * FROM datafusion.public.example");
Copy file name to clipboardExpand all lines: rust/driver/snowflake/src/duration.rs
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,9 @@ fn overflow() -> Error {
43
43
}
44
44
45
45
fnbad_input<T>() -> Result<T>{
46
-
Err(invalid_arg("invalid duration (valid durations are a sequence of decimal numbers, each with optional fraction and a unit suffix, such as 300ms, 1.5h, 2h45m, valid time units are ns, us, ms, s, m, h)"))
46
+
Err(invalid_arg(
47
+
"invalid duration (valid durations are a sequence of decimal numbers, each with optional fraction and a unit suffix, such as 300ms, 1.5h, 2h45m, valid time units are ns, us, ms, s, m, h)",
48
+
))
47
49
}
48
50
49
51
/// Parse the given string to a [`Duration`], returning an error when parsing
@@ -260,7 +262,9 @@ mod tests {
260
262
+ Duration::from_secs(48)
261
263
+ Duration::from_nanos(372539828))
262
264
);
263
-
let bad_input = Err(invalid_arg("invalid duration (valid durations are a sequence of decimal numbers, each with optional fraction and a unit suffix, such as 300ms, 1.5h, 2h45m, valid time units are ns, us, ms, s, m, h)"));
265
+
let bad_input = Err(invalid_arg(
266
+
"invalid duration (valid durations are a sequence of decimal numbers, each with optional fraction and a unit suffix, such as 300ms, 1.5h, 2h45m, valid time units are ns, us, ms, s, m, h)",
0 commit comments