Skip to content

Commit

Permalink
Fix partition query (#2353)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkyryliuk authored Mar 7, 2017
1 parent 705d09d commit 2b0cb2b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion superset/db_engine_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,10 @@ def extra_table_metadata(cls, database, table_name, schema_name):
if not indexes:
return {}
cols = indexes[0].get('column_names', [])
pql = cls._partition_query(table_name, schema_name, cols)
full_table_name = table_name
if schema_name and '.' not in table_name:
full_table_name = "{}.{}".format(schema_name, table_name)
pql = cls._partition_query(full_table_name)
col_name, latest_part = cls.latest_partition(
table_name, schema_name, database)
return {
Expand Down

0 comments on commit 2b0cb2b

Please sign in to comment.