Skip to content

Commit

Permalink
lint: rm debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Nov 28, 2023
1 parent b03f71c commit d5b5a32
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions bento_lib/search/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ def collect_resolve_join_tables(
relation_sql_template = "{structure_type}_to_record({field})"
current_alias, current_alias_str, current_alias_sql_schema = json_schema_to_postgres_schema(
new_aliased_resolve_path, schema)
import sys
print(current_alias, current_alias_str, current_alias_sql_schema, file=sys.stderr)

current_relation = sql.SQL(relation_sql_template).format(
structure_type=sql.SQL(structure_type), # json or jsonb here
Expand Down
3 changes: 1 addition & 2 deletions tests/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,8 +957,7 @@ def test_postgres_invalid_schemas():
def test_postgres_valid_queries(query):
e = query["query"]
i, p = query["ps"]
sql, params = postgres.search_query_to_psycopg2_sql(e, TEST_SCHEMA, i)
print("Generated SQL", sql)
_, params = postgres.search_query_to_psycopg2_sql(e, TEST_SCHEMA, i)
assert params == p


Expand Down

0 comments on commit d5b5a32

Please sign in to comment.