Browse Source

[beeswax] Fix sample partition test to accept optional column

Jenny Kim 9 years ago
parent
commit
2dc520d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/beeswax/src/beeswax/server/dbms.py

+ 1 - 1
apps/beeswax/src/beeswax/server/dbms.py

@@ -343,7 +343,7 @@ class HiveServer2Dbms(object):
     return result
 
 
-  def _get_sample_partition_query(self, database, table, column=None, limit=100):
+  def _get_sample_partition_query(self, database, table, column='*', limit=100):
     max_parts = QUERY_PARTITIONS_LIMIT.get()
     partitions = self.get_partitions(database, table, partition_spec=None, max_parts=max_parts)