Skip to content

Commit

Permalink
leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Jan 30, 2024
1 parent c430949 commit a6fc758
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ def _execute_sql(

try:
result = cursor.execute(sql_query, params)
# sql_query_str = sql_query.as_string(cursor) if not isinstance(sql_query, str) else sql_query
# print(f"SQL query: {sql_query_str} \nParameters: {params}")
except Error as e:
self._connection.rollback()
sql_query_str = sql_query.as_string(cursor) if not isinstance(sql_query, str) else sql_query
Expand Down Expand Up @@ -524,4 +522,4 @@ def _embedding_retrieval(

records = result.fetchall()
docs = self._from_pg_to_haystack_documents(records)
return docs
return docs
3 changes: 1 addition & 2 deletions integrations/pgvector/tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ def test_complex_filter(self, document_store, filterable_docs):
)

@pytest.mark.skip(reason="NOT operator is not supported in PgvectorDocumentStore")
def test_not_operator(self, document_store, filterable_docs):
...
def test_not_operator(self, document_store, filterable_docs): ...

def test_treat_meta_field(self):
assert _treat_meta_field(field="meta.number", value=9) == "(meta->>'number')::integer"
Expand Down

0 comments on commit a6fc758

Please sign in to comment.