From bc0da72c2ef1e9bf4a91645fcad0fa3436a4c45d Mon Sep 17 00:00:00 2001 From: Yifei Wang Date: Sat, 25 Nov 2023 16:22:36 -0500 Subject: [PATCH] check for tag not exist --- evadb/models/storage/batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evadb/models/storage/batch.py b/evadb/models/storage/batch.py index 249b8637d..2ab15a91a 100644 --- a/evadb/models/storage/batch.py +++ b/evadb/models/storage/batch.py @@ -173,7 +173,7 @@ def apply_function_expression(self, expr: Callable) -> Batch: """ Execute function expression on frames. """ - if expr.forward.tags is not None: + if hasattr(expr.forward, "tags"): input_tags = expr.forward.tags["input"][0] output_tags = expr.forward.tags["output"][0] self.drop_column_alias(metadata=(input_tags, output_tags))