Skip to content
Prev Previous commit
Next Next commit
fixed bugs to pass test_validation
Signed-off-by: Youngkyu OH <toping4445@gmail.com>
  • Loading branch information
toping4445 authored and younggyu-oh committed Aug 9, 2022
commit 901103633b69e1d6b48b9c52e1ad76ff08702ad6
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ def pull_all_from_table_or_query(

date_partition_column = data_source.date_partition_column

start_date = start_date.astimezone(tz=utc)
end_date = end_date.astimezone(tz=utc)
start_date = start_date.astimezone(tz=utc).strftime('%Y-%m-%d %H:%M:%S.%f')[:-3]
end_date = end_date.astimezone(tz=utc).strftime('%Y-%m-%d %H:%M:%S.%f')[:-3]

query = f"""
SELECT {field_string}
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/feast/infra/utils/aws_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ def upload_arrow_table_to_athena(
bucket, key = get_bucket_and_key(s3_path)

column_query_list = ", ".join(
[f"{field.name} {pa_to_athena_value_type(field.type)}" for field in schema]
[f"`{field.name}` {pa_to_athena_value_type(field.type)}" for field in schema]
)

with tempfile.TemporaryFile(suffix=".parquet") as parquet_temp_file:
Expand Down