From bd80a141fa69290b9a83ff448799486a3c12c5e9 Mon Sep 17 00:00:00 2001 From: Ethan Steinberg Date: Wed, 7 Aug 2024 08:52:44 -0700 Subject: [PATCH] Mac compatability --- .github/workflows/python-build.yml | 3 +-- native/perform_etl.cc | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml index bb53fcc..6ad1bb0 100644 --- a/.github/workflows/python-build.yml +++ b/.github/workflows/python-build.yml @@ -58,8 +58,7 @@ jobs: Publish Python 🐍 distribution 📦 to PyPI if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes needs: - - build_wheels - - make_sdist + - make_artifact runs-on: ubuntu-latest environment: name: pypi diff --git a/native/perform_etl.cc b/native/perform_etl.cc index 2fb0e9e..387791b 100644 --- a/native/perform_etl.cc +++ b/native/perform_etl.cc @@ -194,13 +194,12 @@ std::vector get_samples( moodycamel::BlockingConcurrentQueue>& file_queue) { arrow::MemoryPool* pool = arrow::default_memory_pool(); - absl::flat_hash_map string_status; + absl::flat_hash_map string_status; std::vector unique_strings; auto process_function = [&](std::string_view item) { - static_assert(std::is_same_v); - uint64_t h = std::hash{}(item); + size_t h = std::hash{}(item); uint8_t& value = string_status[h]; if (value == 0) {