Skip to content

Commit 91bf53b

Browse files
author
David Liu
committed
marked a test that needs bigquery client requesting to be an integration test & added __ rule in inference
Signed-off-by: David Liu <davidl@twitter.com>
1 parent 6ef2afd commit 91bf53b

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎sdk/python/feast/feature_view.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
import re
1415
from datetime import datetime, timedelta
1516
from typing import Dict, List, Optional, Tuple, Union
1617

@@ -75,7 +76,9 @@ def __init__(
7576
)
7677

7778
for col_name, col_datatype in input.get_table_column_names_and_types():
78-
if col_name not in columns_to_exclude:
79+
if col_name not in columns_to_exclude and not re.match(
80+
"^__|__$", col_name
81+
):
7982
features.append(Feature(col_name, type_converter(col_datatype)))
8083

8184
if not features:

‎sdk/python/tests/test_feature_store.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ def test_apply_feature_view_integration(test_feature_store):
293293
assert len(feature_views) == 0
294294

295295

296+
@pytest.mark.integration
296297
@pytest.mark.parametrize("dataframe_source", [lazy_fixture("simple_dataset_1")])
297298
def test_data_source_ts_col_inference_success(dataframe_source):
298299
with prep_file_source(df=dataframe_source) as file_source:

0 commit comments

Comments
 (0)