#NEWLINE# def _adapt_types( self , descr ) : #NEWLINE# #INDENT# names = [ ] #NEWLINE# adapted_types = [ ] #NEWLINE# for col in descr : #NEWLINE# #INDENT# names . append ( col [ 0 ] ) #NEWLINE# impala_typename = col [ 1 ] #NEWLINE# typename = udf . _impala_to_ibis_type [ impala_typename . lower ( ) ] #NEWLINE# if ( typename == 'decimal' ) : #NEWLINE# #INDENT# ( precision , scale ) = col [ 4 : 6 ] #NEWLINE# adapted_types . append ( dt . Decimal ( precision , scale ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# adapted_types . append ( typename ) #NEWLINE# #UNINDENT# #UNINDENT# return ( names , adapted_types )