getredash / redash-toolbelt

API client and utilities to manage a Redash instance
BSD 2-Clause "Simplified" License
140 stars 74 forks source link

Fix format_query when query terminated with a semicolon. #43

Closed ariarijp closed 1 year ago

ariarijp commented 3 years ago

Problem

When I have some queries terminated with a semicolon, then find-tables fails. (i.e. SELECT * FROM table;)

Solution

Trim semicolon from queries before extract table names.