File tree 1 file changed +11
-2
lines changed
src/query/storages/hive/hive/src
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,13 @@ impl HiveCatalog {
143
143
pub fn get_client ( & self ) -> Result < impl TThriftHiveMetastoreSyncClient > {
144
144
let mut c = TTcpChannel :: new ( ) ;
145
145
c. open ( self . client_address . as_str ( ) )
146
- . map_err ( from_thrift_error) ?;
146
+ . map_err ( from_thrift_error)
147
+ . map_err ( |err| {
148
+ err. add_message_back ( format ! (
149
+ "hive_metadatastore_address: {}" ,
150
+ self . client_address. as_str( )
151
+ ) )
152
+ } ) ?;
147
153
let ( i_chan, o_chan) = c. split ( ) . map_err ( from_thrift_error) ?;
148
154
let i_tran = TBufferedReadTransport :: new ( i_chan) ;
149
155
let o_tran = TBufferedWriteTransport :: new ( o_chan) ;
@@ -334,7 +340,10 @@ impl HiveCatalog {
334
340
}
335
341
336
342
fn from_thrift_error ( error : thrift:: Error ) -> ErrorCode {
337
- ErrorCode :: from_std_error ( error)
343
+ ErrorCode :: Internal ( format ! (
344
+ "thrift error: {:?}, please check your thrift client config" ,
345
+ error
346
+ ) )
338
347
}
339
348
340
349
#[ async_trait:: async_trait]
You can’t perform that action at this time.
0 commit comments