diff --git a/setup.py b/setup.py index f3c891072..3dc7fb08f 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ setuptools.setup( name="verticapy", - version="1.0.0", + version="1.0.1", author="Badr Ouali", author_email="badr.ouali@vertica.com", url="https://github.com/vertica/VerticaPy", diff --git a/verticapy/__init__.py b/verticapy/__init__.py index 64ed28b4a..d1c90d99d 100755 --- a/verticapy/__init__.py +++ b/verticapy/__init__.py @@ -36,9 +36,9 @@ ) __url__: str = "https://github.com/vertica/verticapy/" __license__: str = "Apache License, Version 2.0" -__version__: str = "1.0.0" +__version__: str = "1.0.1" __iteration__: int = 1 -__date__: str = "01092024" +__date__: str = "01152024" __last_commit__: str = "a06640a3cc5a69a826c00f030c49fd89905827b8" __long_version__: str = f"{__version__}-{__iteration__}—{__date__}-{__last_commit__}" __codecov__: float = 0.8316 diff --git a/verticapy/performance/vertica/qprof.py b/verticapy/performance/vertica/qprof.py index 21a973fd4..6e28031a6 100755 --- a/verticapy/performance/vertica/qprof.py +++ b/verticapy/performance/vertica/qprof.py @@ -1245,11 +1245,12 @@ def _create_copy_v_table(self) -> None: # Getting the new DATATYPES try: - self.tables_dtypes += [ - get_data_types( - f"SELECT * FROM {new_schema}.{new_table} LIMIT 0", - ) - ] + if not (self.overwrite): + self.tables_dtypes += [ + get_data_types( + f"SELECT * FROM {new_schema}.{new_table} LIMIT 0", + ) + ] except: if conf.get_option("print_info") and idx == 0: print("Some tables seem to not exist...") @@ -1267,10 +1268,10 @@ def _create_copy_v_table(self) -> None: f"SELECT * FROM {schema}.{table} LIMIT 0", ) ] - if not (exists): + if not (exists) or (self.overwrite): self.tables_dtypes += [self.v_tables_dtypes[-1]] - if not (exists): + if not (exists) or (self.overwrite): if conf.get_option("print_info"): print( f"Copy of {schema}.{table} created in {new_schema}.{new_table}"