

def test_redshift_dwdate(temp_tb):
    dshape = datashape.dshape('var * {\n          key: int64,\n          date: string[19],\n          day_of_week: string[10],\n          month: string[10],\n          year: int64,\n          year_month_num: int64,\n          year_month: string[8],\n          day_num_in_week: int64,\n          day_num_in_month: int64,\n          day_num_in_year: int64,\n          month_num_in_year: int64,\n          week_num_in_year: int64,\n          selling_season: string[13],\n          last_day_in_week_fl: string[1],\n          last_day_in_month_fl: string[1],\n          holiday_fl: string[1],\n          weekday_fl: string[1]\n    }')
    assert (odo(S3(CSV)('s3://awssampledb/ssbgz/dwdate'), temp_tb, delimiter='|', compression='gzip', dshape=temp_tb).count().scalar() == 2556)

dataset/ETHPy150Open blaze/odo/odo/backends/tests/test_s3_redshift.py test_redshift_dwdate/VarMisuse@43/300 `dshape`->`temp_tb`