Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jvasquezrojas committed Sep 25, 2024
1 parent afe2190 commit ac9fe8d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/snowflake/sqlalchemy/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@

APPLICATION_NAME = "SnowflakeSQLAlchemy"
SNOWFLAKE_SQLALCHEMY_VERSION = VERSION
DIALECT_NAME = "snowflake"
5 changes: 0 additions & 5 deletions src/snowflake/sqlalchemy/constants.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/snowflake/sqlalchemy/snowdialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
from snowflake.connector.constants import UTF8
from snowflake.sqlalchemy.compat import returns_unicode

from ._constants import DIALECT_NAME
from .base import (
SnowflakeCompiler,
SnowflakeDDLCompiler,
SnowflakeExecutionContext,
SnowflakeIdentifierPreparer,
SnowflakeTypeCompiler,
)
from .constants import DIALECT_NAME
from .custom_types import (
_CUSTOM_DECIMAL,
ARRAY,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from sqlalchemy.exc import ArgumentError
from sqlalchemy.sql.schema import MetaData, SchemaItem, Table

from ..._constants import DIALECT_NAME
from ...compat import IS_VERSION_20
from ...constants import DIALECT_NAME
from ...custom_commands import NoneType
from .options.table_option import TableOption

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def template() -> str:

def get_expression(self):
return (
("'" + str(self.time) + " " + str(self.unit.value) + "'")
f"'{str(self.time)} {str(self.unit.value)}'"
if not self.down_stream
else "DOWNSTREAM"
)
Expand Down

0 comments on commit ac9fe8d

Please sign in to comment.