Skip to content

Commit 9fd0502

Browse files
committed
fix: handle case clause error in filters
fix: don't return invalid type from vector type
1 parent c13c6a3 commit 9fd0502

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

lib/ash/filter/filter.ex

+1
Original file line numberDiff line numberDiff line change
@@ -4092,6 +4092,7 @@ defmodule Ash.Filter do
40924092
end
40934093
end
40944094
else
4095+
{:known, value} -> {:cont, {:ok, value}}
40954096
{:error, error} -> {:halt, {:error, error}}
40964097
end
40974098
end

lib/ash/type/vector.ex

+2-6
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,8 @@ defmodule Ash.Type.Vector do
1818
def constraints, do: @constraints
1919

2020
@impl true
21-
def storage_type(constraints) do
22-
if constraints[:dimensions] do
23-
{:vector, constraints[:dimensions]}
24-
else
25-
:vector
26-
end
21+
def storage_type(_constraints) do
22+
:vector
2723
end
2824

2925
@impl true

0 commit comments

Comments
 (0)