Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
type kwargs to be str -> any
Signed-off-by: Achal Shah <achals@gmail.com>
  • Loading branch information
achals committed Apr 9, 2022
commit abdc98decfb4d752f118804816ef0be3209ea418
5 changes: 2 additions & 3 deletions sdk/python/feast/infra/utils/snowflake_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import string
from logging import getLogger
from tempfile import TemporaryDirectory
from typing import Dict, Iterator, List, Optional, Tuple, cast
from typing import Dict, Iterator, List, Optional, Tuple, cast, Any

import pandas as pd
from cryptography.hazmat.backends import default_backend
Expand Down Expand Up @@ -50,10 +50,9 @@ def get_snowflake_conn(config, autocommit=True) -> SnowflakeConnection:
# read config file
config_reader = configparser.ConfigParser()
config_reader.read([config_dict["config_path"]])
kwargs: Dict[str, Any] = {}
if config_reader.has_section(config_header):
kwargs = dict(config_reader[config_header])
else:
kwargs = {}

if "schema" in kwargs:
kwargs["schema_"] = kwargs.pop("schema")
Expand Down