Skip to content

Commit a460666

Browse files
Tweak query logic
1 parent ba08215 commit a460666

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/phoenix/trace/dsl/filter.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
)
3434

3535
EVAL_NAME_PATTERN = re.compile(
36-
r"""\b((annotations|evals)\[(\".*?\"|'.*?')\])\b"""
36+
r"""\b((annotations|evals)\[(".*?"|'.*?')\])\b"""
3737
)
3838

3939

@@ -75,7 +75,7 @@ def attributes(self) -> typing.Iterator[tuple[str, Mapped[typing.Any]]]:
7575
yield self._label_attribute_alias, self.table.label
7676
yield self._score_attribute_alias, self.table.score
7777
yield self._exists_attribute_alias, case(
78-
(self.table.id.is_not(None), literal(True))
78+
(self.table.id.is_not(None), literal(True)), else_=literal(False)
7979
)
8080

8181
def attribute_alias(self, attribute: AnnotationAttribute) -> str:

0 commit comments

Comments
 (0)