parameters: (self, table, database='default')
return_statement: return dates
docstring: Return a list of datetime.dates that Hive knows for this table.
docstring_summary: Return a list of datetime.dates that Hive knows for this table.
docstring_tokens: Return a list of datetime . dates that Hive knows for this table .
function: def get_available_dates(self, table, database='default'):
          """Return a list of datetime.dates that Hive knows for this table."""
          partitions = self.get_partitions(table, database=database)
          # Each row is of the form utc_date=<date>, so parse out the date part.
          dates = [datetime.datetime.strptime(r, "%Y-%m-%d").date()
                   for r in partitions if not r.startswith('_distcp')]
          return dates
function_tokens: def get_available_dates ( self , table , database = 'default' ) : partitions = self . get_partitions ( table , database = database ) # Each row is of the form utc_date=<date>, so parse out the date part. dates = [ datetime . datetime . strptime ( r , "%Y-%m-%d" ) . date ( ) for r in partitions if not r . startswith ( '_distcp' ) ] return dates