feast-dev / feast

The Open Source Feature Store for Machine Learning
https://feast.dev
Apache License 2.0
5.58k stars 996 forks source link

How load defualt value when environ variable is not set #3669

Closed GyuminJack closed 6 months ago

GyuminJack commented 1 year ago

Expected Behavior

${REDIS_CONNECTION_STRING:"0.0.0.0:6379"} -> when "REDIS_CONNECTION_STRING" is not set, i expect return value is "0.0.0.0:6379" but not properly working

Current Behavior

only returns "${REDIS_CONNECTION_STRING:"0.0.0.0:6379"}"

Steps to reproduce

type that string is feature_store.yaml

Specifications

Possible Solution

tmihalac commented 6 months ago

Current Behavior

only returns "${REDIS_CONNECTION_STRING:"0.0.0.0:6379"}"

Hello @GyuminJack , can you please clarify what exactly did you mean? What are the steps to reproduce the returned string you mentioned, I want to write a test that reproduces the issue to resolve it.

tmihalac commented 6 months ago

The current code does not support default value in the Redis connection string, I am going to fix the documentation