added query rewriting rule from 'AS INTEGER)' to 'AS bigint)' to be compatible with Tableau 8.2
added DEBUG1 logging for partial_rewrite_index and has_cursor