#NEWLINE# def schema_kudu_to_ibis( kschema , drop_nn = False ) : #NEWLINE# #INDENT# ibis_types = [ ] #NEWLINE# for i in range ( len ( kschema ) ) : #NEWLINE# #INDENT# col = kschema [ i ] #NEWLINE# typeclass = _kudu_type_to_ibis_typeclass [ col . type . name ] #NEWLINE# if drop_nn : #NEWLINE# #INDENT# itype = typeclass ( True ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# itype = typeclass ( col . nullable ) #NEWLINE# #UNINDENT# ibis_types . append ( ( col . name , itype ) ) #NEWLINE# #UNINDENT# return schema ( kschema )