Skip to content

Commit

Permalink
Converted SQL mail into multiple files. (apache#1401)
Browse files Browse the repository at this point in the history
Converted SQL mail into multiple files.

This pull request is aimed at improving the overall quality of our SQL codebase
by converting the main SQL (age-x.x.x.sql) file into multiple smaller files in the
sql directory. The primary goal is to enhance code readability, maintainability,
and organization for the benefit of the development team.

(cherry picked from commit f6e6af7)
  • Loading branch information
muhammadshoaib committed Nov 28, 2023
1 parent 9e5d18f commit 7877abe
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions sql/agtype_access.sql
Original file line number Diff line number Diff line change
Expand Up @@ -51,36 +51,6 @@ CREATE OPERATOR ->> (
FUNCTION = ag_catalog.agtype_object_field_text
);

CREATE FUNCTION ag_catalog.agtype_object_field_agtype(agtype, agtype)
RETURNS agtype
LANGUAGE c
IMMUTABLE
RETURNS NULL ON NULL INPUT
PARALLEL SAFE
AS 'MODULE_PATHNAME';

-- get agtype object field or array element
CREATE OPERATOR -> (
LEFTARG = agtype,
RIGHTARG = agtype,
FUNCTION = ag_catalog.agtype_object_field_agtype
);

CREATE FUNCTION ag_catalog.agtype_object_field_text_agtype(agtype, agtype)
RETURNS text
LANGUAGE c
IMMUTABLE
RETURNS NULL ON NULL INPUT
PARALLEL SAFE
AS 'MODULE_PATHNAME';

-- get agtype object field or array element as text
CREATE OPERATOR ->> (
LEFTARG = agtype,
RIGHTARG = agtype,
FUNCTION = ag_catalog.agtype_object_field_text_agtype
);

CREATE FUNCTION ag_catalog.agtype_array_element(agtype, int4)
RETURNS agtype
LANGUAGE c
Expand Down

0 comments on commit 7877abe

Please sign in to comment.