#NEWLINE# def _new_cursor( self ) : #NEWLINE# #INDENT# params = self . params . copy ( ) #NEWLINE# con = impyla . connect ( database = self . database , ** params ) #NEWLINE# self . _connections [ id ( con ) ] = con #NEWLINE# cursor = con . cursor ( convert_types = True ) #NEWLINE# cursor . ping ( ) #NEWLINE# wrapper = ImpalaCursor ( cursor , self , con , self . database , self . options . copy ( ) ) #NEWLINE# wrapper . set_options ( ) #NEWLINE# return self