Skip to content

Commit e8477b6

Browse files
committed
Updating uuid() generation.
1 parent c0b1c07 commit e8477b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

awswrangler/athena.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Amazon Athena Module."""
22

33
import csv
4+
import uuid
45
import datetime
56
import logging
67
import pprint
@@ -11,7 +12,6 @@
1112

1213
import boto3 # type: ignore
1314
import pandas as pd # type: ignore
14-
import pyarrow as pa # type: ignore
1515

1616
from awswrangler import _data_types, _utils, catalog, exceptions, s3, sts
1717

@@ -574,7 +574,7 @@ def _resolve_query_without_cache(
574574
if ctas_temp_table_name is not None:
575575
name = catalog.sanitize_table_name(ctas_temp_table_name)
576576
else:
577-
name = f"temp_table_{pa.compat.guid()}"
577+
name = f"temp_table_{uuid.uuid4().hex}"
578578
path: str = f"{_s3_output}/{name}"
579579
ext_location: str = "\n" if wg_config["enforced"] is True else f",\n external_location = '{path}'\n"
580580
sql = (

0 commit comments

Comments
 (0)