feast-dev / feast-dev/feast-aws-credit-scoring-tutorial
Redshift Source - Unable to infer a name for this data source. Either table or name must be specified.
- Dominant language
- Python
- Stars
- 76
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
# Environment
FEAST 0.51
Python 3.11
MacOS (Apple Silicon)
# Issue
```
$ feast apply
Traceback (most recent call last):
File "/Users/onishima/venv/feast/bin/feast", line 8, in
sys.exit(cli())
^^^^^
File "/Users/onishima/venv/feast/lib/python3.11/site-packages/click/core.py", line 1442, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/onishima/venv/feast/lib/python3.11/site-packages/click/core.py", line 1363, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/onishima/venv/feast/lib/python3.11/site-packages/click/core.py", line 1830, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/onishima/venv/feast/lib/python3.11/site-packages/click/core.py", line 1226, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/onishima/venv/feast/lib/python3.11/site-packages/click/core.py", line 794, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/onishima/venv/feast/lib/python3.11/site-packages/click/decorators.py", line 34, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/onishima/venv/feast/lib/python3.11/site-packages/feast/cli/cli.py", line 272, in apply_total_command
apply_total(repo_config, repo, skip_source_validation)
File "/Users/onishima/venv/feast/lib/python3.11/site-packages/feast/repo_operations.py", line 392, in apply_total
repo = _get_repo_contents(repo_path, repo_config.project)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/onishima/venv/feast/lib/python3.11/site-packages/feast/repo_operations.py", line 244, in _get_repo_contents
repo = parse_repo(repo_path)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/onishima/venv/feast/lib/python3.11/site-packages/feast/repo_operations.py", line 135, in parse_repo
module = importlib.import_module(module_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.11/3.11.13/Frameworks/Python.framework/Versions/3.11/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/Users/onishima/Documents/home/repository/git/FEAST/feast-aws-credit-scoring-tutorial/feature_repo/features.py", line 8, in
zipcode_source = RedshiftSource(
^^^^^^^^^^^^^^^
File "/Users/onishima/venv/feast/lib/python3.11/site-packages/feast/infra/offline_stores/redshift_source.py", line 81, in __init__
raise DataSourceNoNameException()
feast.errors.DataSourceNoNameException: Unable to infer a name for this data source. Either table or name must be specified.
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in feature_repo/features.py at the zipcode_source RedshiftSource construction shown in the traceback, then inspect feast/infra/offline_stores/redshift_source.py to understand the required source arguments. Run feast apply with the tutorial environment and confirm that the data source can be constructed without DataSourceNoNameException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100