Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
ba92fcbc
Commit
ba92fcbc
authored
18 years ago
by
Joris van Zwieten
Browse files
Options
Downloads
Patches
Plain Diff
BugID: 987
- API change: get_step() and get_solve_arguments() now return only parset related columns.
parent
e98ceaae
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CEP/BB/BBSControl/sql/create_blackboard_functions.sql
+36
-7
36 additions, 7 deletions
CEP/BB/BBSControl/sql/create_blackboard_functions.sql
with
36 additions
and
7 deletions
CEP/BB/BBSControl/sql/create_blackboard_functions.sql
+
36
−
7
View file @
ba92fcbc
...
...
@@ -56,13 +56,39 @@ LANGUAGE SQL;
-- ---- --
-- STEP --
-- ---- --
CREATE
TYPE
blackboard
.
iface_step
AS
(
"Name"
TEXT
,
"Operation"
TEXT
,
"Baselines.Station1"
TEXT
[],
"Baselines.Station2"
TEXT
[],
"Correlation.Selection"
TEXT
,
"Correlation.Type"
TEXT
[],
"Sources"
TEXT
[],
"InstrumentModel"
TEXT
[],
"OutputData"
TEXT
);
CREATE
TYPE
blackboard
.
iface_solve_arguments
AS
(
"MaxIter"
INTEGER
,
"Epsilon"
DOUBLE
PRECISION
,
"MinConverged"
DOUBLE
PRECISION
,
"Parms"
TEXT
[],
"ExclParms"
TEXT
[],
"DomainSize.Freq"
DOUBLE
PRECISION
,
"DomainSize.Time"
DOUBLE
PRECISION
);
-- Function: blackboard.get_step
-- Full signature:
-- blackboard.get_step(_work_order_id INTEGER)
CREATE
OR
REPLACE
FUNCTION
blackboard
.
get_step
(
INTEGER
)
RETURNS
blackboard
.
step
AS
RETURNS
blackboard
.
iface_
step
AS
$$
SELECT
*
SELECT
"Name"
,
"Operation"
,
"Baselines.Station1"
,
"Baselines.Station2"
,
"Correlation.Selection"
,
"Correlation.Type"
,
"Sources"
,
"InstrumentModel"
,
"OutputData"
FROM
blackboard
.
step
WHERE
blackboard
.
step
.
work_order_id
=
$
1
;
$$
...
...
@@ -73,21 +99,24 @@ LANGUAGE SQL;
-- Full signature:
-- blackboard.get_solve_arguments(_work_order_id INTEGER)
CREATE
OR
REPLACE
FUNCTION
blackboard
.
get_solve_arguments
(
INTEGER
)
RETURNS
blackboard
.
solve_arguments
AS
RETURNS
blackboard
.
iface_
solve_arguments
AS
$$
DECLARE
step
blackboard
.
step
%
ROWTYPE
;
arguments
blackboard
.
solve_arguments
%
ROWTYPE
;
arguments
blackboard
.
iface_
solve_arguments
;
BEGIN
SELECT
*
INTO
step
SELECT
*
INTO
step
FROM
blackboard
.
step
WHERE
work_order_id
=
$
1
;
IF
NOT
FOUND
OR
step
.
"Operation"
!=
'SOLVE'
THEN
RAISE
EXCEPTION
'Work order % either
doe
s not
exist or ha
s no a
ssociated solve arguments
.'
,
$
1
;
RAISE
EXCEPTION
'Work order % either
i
s not
a solve step or it i
s no
t
a
step at all
.'
,
$
1
;
END
IF
;
SELECT
*
INTO
arguments
SELECT
"MaxIter"
,
"Epsilon"
,
"MinConverged"
,
"Parms"
,
"ExclParms"
,
"DomainSize.Freq"
,
"DomainSize.Time"
INTO
arguments
FROM
blackboard
.
solve_arguments
WHERE
step_id
=
step
.
id
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment