File tree Expand file tree Collapse file tree 6 files changed +523
-239
lines changed Expand file tree Collapse file tree 6 files changed +523
-239
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use crate::{TestCaseInfo, TestResult};
15
15
pub async fn read_golden ( path : & Path , _version : Option < & str > ) -> DeltaResult < RecordBatch > {
16
16
let expected_root = path. join ( "expected" ) . join ( "latest" ) . join ( "table_content" ) ;
17
17
let store = Arc :: new ( LocalFileSystem :: new_with_prefix ( & expected_root) ?) ;
18
- let files = store. list ( None ) . try_collect :: < Vec < _ > > ( ) . await ?;
18
+ let files: Vec < _ > = store. list ( None ) . try_collect ( ) . await ?;
19
19
let mut batches = vec ! [ ] ;
20
20
let mut schema = None ;
21
21
for meta in files. into_iter ( ) {
Original file line number Diff line number Diff line change @@ -328,6 +328,7 @@ pub enum KernelError {
328
328
InvalidStructDataError ,
329
329
InternalError ,
330
330
InvalidExpression ,
331
+ InvalidLogPath ,
331
332
}
332
333
333
334
impl From < Error > for KernelError {
@@ -374,6 +375,7 @@ impl From<Error> for KernelError {
374
375
backtrace : _,
375
376
} => Self :: from ( * source) ,
376
377
Error :: InvalidExpressionEvaluation ( _) => KernelError :: InvalidExpression ,
378
+ Error :: InvalidLogPath ( _) => KernelError :: InvalidLogPath ,
377
379
}
378
380
}
379
381
}
Original file line number Diff line number Diff line change @@ -155,6 +155,10 @@ pub enum Error {
155
155
/// Expressions did not parse or evaluate correctly
156
156
#[ error( "Invalid expression evaluation: {0}" ) ]
157
157
InvalidExpressionEvaluation ( String ) ,
158
+
159
+ /// Unable to parse the name of a log path
160
+ #[ error( "Invalid log path: {0}" ) ]
161
+ InvalidLogPath ( String ) ,
158
162
}
159
163
160
164
// Convenience constructors for Error types that take a String argument
@@ -203,6 +207,9 @@ impl Error {
203
207
pub fn invalid_expression ( msg : impl ToString ) -> Self {
204
208
Self :: InvalidExpressionEvaluation ( msg. to_string ( ) )
205
209
}
210
+ pub ( crate ) fn invalid_log_path ( msg : impl ToString ) -> Self {
211
+ Self :: InvalidLogPath ( msg. to_string ( ) )
212
+ }
206
213
207
214
pub fn internal_error ( msg : impl ToString ) -> Self {
208
215
Self :: InternalError ( msg. to_string ( ) ) . with_backtrace ( )
Original file line number Diff line number Diff line change @@ -63,7 +63,12 @@ pub mod engine_data;
63
63
pub mod error;
64
64
pub mod expressions;
65
65
pub mod features;
66
+
67
+ #[ cfg( feature = "developer-visibility" ) ]
68
+ pub mod path;
69
+ #[ cfg( not( feature = "developer-visibility" ) ) ]
66
70
pub ( crate ) mod path;
71
+
67
72
pub mod scan;
68
73
pub mod schema;
69
74
pub mod snapshot;
You can’t perform that action at this time.
0 commit comments