(self, table, database='default')
return dates
Return a list of datetime.dates that Hive knows for this table.
Return a list of datetime.dates that Hive knows for this table.
Return a list of datetime . dates that Hive knows for this table .
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
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