summaryrefslogtreecommitdiffstats
path: root/sqlglot/dataframe/sql/session.py
diff options
context:
space:
mode:
Diffstat (limited to 'sqlglot/dataframe/sql/session.py')
-rw-r--r--sqlglot/dataframe/sql/session.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sqlglot/dataframe/sql/session.py b/sqlglot/dataframe/sql/session.py
index c4a22c6..af589b0 100644
--- a/sqlglot/dataframe/sql/session.py
+++ b/sqlglot/dataframe/sql/session.py
@@ -129,7 +129,7 @@ class SparkSession:
@property
def _random_name(self) -> str:
- return f"a{str(uuid.uuid4())[:8]}"
+ return "r" + uuid.uuid4().hex
@property
def _random_branch_id(self) -> str:
@@ -145,7 +145,7 @@ class SparkSession:
@property
def _random_id(self) -> str:
- id = f"a{str(uuid.uuid4())[:8]}"
+ id = self._random_name
self.known_ids.add(id)
return id