@@ -28,45 +28,21 @@ pub type Result<T, E = DFSqlLogicTestError> = std::result::Result<T, E>;
28
28
pub enum DFSqlLogicTestError {
29
29
/// Error from sqllogictest-rs
30
30
#[ error( "SqlLogicTest error(from sqllogictest-rs crate): {0}" ) ]
31
- SqlLogicTest ( TestError ) ,
31
+ SqlLogicTest ( # [ from ] TestError ) ,
32
32
/// Error from datafusion
33
33
#[ error( "DataFusion error: {0}" ) ]
34
- DataFusion ( DataFusionError ) ,
34
+ DataFusion ( # [ from ] DataFusionError ) ,
35
35
/// Error returned when SQL is syntactically incorrect.
36
36
#[ error( "SQL Parser error: {0}" ) ]
37
- Sql ( ParserError ) ,
37
+ Sql ( # [ from ] ParserError ) ,
38
38
/// Error from arrow-rs
39
39
#[ error( "Arrow error: {0}" ) ]
40
- Arrow ( ArrowError ) ,
40
+ Arrow ( # [ from ] ArrowError ) ,
41
41
/// Generic error
42
42
#[ error( "Other Error: {0}" ) ]
43
43
Other ( String ) ,
44
44
}
45
45
46
- impl From < TestError > for DFSqlLogicTestError {
47
- fn from ( value : TestError ) -> Self {
48
- DFSqlLogicTestError :: SqlLogicTest ( value)
49
- }
50
- }
51
-
52
- impl From < DataFusionError > for DFSqlLogicTestError {
53
- fn from ( value : DataFusionError ) -> Self {
54
- DFSqlLogicTestError :: DataFusion ( value)
55
- }
56
- }
57
-
58
- impl From < ParserError > for DFSqlLogicTestError {
59
- fn from ( value : ParserError ) -> Self {
60
- DFSqlLogicTestError :: Sql ( value)
61
- }
62
- }
63
-
64
- impl From < ArrowError > for DFSqlLogicTestError {
65
- fn from ( value : ArrowError ) -> Self {
66
- DFSqlLogicTestError :: Arrow ( value)
67
- }
68
- }
69
-
70
46
impl From < String > for DFSqlLogicTestError {
71
47
fn from ( value : String ) -> Self {
72
48
DFSqlLogicTestError :: Other ( value)
0 commit comments