circles-learning-labs / ecto_adapters_dynamodb

DynamoDB adapter for Elixir's Ecto Database layer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dialyzer warning

darrenklein opened this issue · comments

I noticed that we've had a dialyzer warning for some time - since at least March, 2019, but probably earlier:

lib/ecto_adapters_dynamodb/query.ex:109: The pattern {__index_type@1, _index_name@1, _index_fields@1} can never match the type {'primary_partial' | binary(),[binary()]}

referring to

  defp get_hash_range_key_list({_index_type, index_name, index_fields}), do: get_hash_range_key_list({index_name, index_fields})

I couldn't figure out where this warning is coming from. Probably not critical, but would be nice to fix...

This has been resolved and will be out in the next release.