Skip to content

Commit 328d533

Browse files
committed
Add explaining comment for jsonb_array_to_ore_64_8_v1 function
1 parent e3e291e commit 328d533

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sql/011-core-functions.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ CREATE CAST (text AS ore_64_8_v1_term)
158158

159159
DROP FUNCTION IF EXISTS jsonb_array_to_ore_64_8_v1(val jsonb);
160160

161+
-- Casts a jsonb array of hex-encoded strings to the `ore_64_8_v1` composite type.
162+
-- In other words, this function takes the ORE index format sent through in the
163+
-- EQL payload from Proxy and decodes it as the composite type that we use for
164+
-- ORE operations on the Postgres side.
161165
CREATE FUNCTION jsonb_array_to_ore_64_8_v1(val jsonb)
162166
RETURNS ore_64_8_v1 AS $$
163167
DECLARE

0 commit comments

Comments
 (0)