How to query to check list of tables in database


i want get list of tables in database
so how to query to get list of tables from database in python using pymapd

Table in database

You can use Connection.get_tables() to pull the list of tables from the database.

from pymapd import connect

query = con.get_tables()
res = c.execute(query)

is this code is correct but i am not getting response

TypeError: expected bytes, list found


The query object contains the actual list of tables, you don’t need to pass it as a query.