Skip to content

Commit

Permalink
Merge branch 'ibis-project:main' into extend-read-parquet
Browse files Browse the repository at this point in the history
  • Loading branch information
jitingxu1 authored Sep 18, 2024
2 parents b01bc6a + 54472b4 commit e70de2f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/algolia/configure-algolia-api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
index_name = os.environ["ALGOLIA_INDEX"]


ONE_WAY_SYNONYMS = {
# A list of search terms that have (historically) not returned results
# that we can map to existing search terms that we know are good
"md5": ["hashbytes"],
"fetchdf": ["to_pandas", "to_polars", "to_pyarrow"],
"unique": ["distinct"],
}


def main():
client = SearchClient.create(app_id, api_key)
index = client.init_index(index_name)
Expand All @@ -30,6 +39,16 @@ def main():

index.set_settings(override_default_settings)

for input_, synonyms in ONE_WAY_SYNONYMS.items():
index.save_synonym(
{
"objectID": input_,
"type": "oneWaySynonym",
"input": input_,
"synonyms": synonyms,
}
)


if __name__ == "__main__":
main()
1 change: 1 addition & 0 deletions ibis/backends/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,7 @@ def test_self_join_memory_table(backend, con, monkeypatch):
)
def test_create_table_in_memory(con, obj, table_name, monkeypatch):
monkeypatch.setattr(ibis.options, "default_backend", con)
table_name = gen_name(table_name)
t = con.create_table(table_name, obj())

try:
Expand Down

0 comments on commit e70de2f

Please sign in to comment.