Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ChEBI Data Management
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Monitor
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ChEMBL
ChEBI
ChEBI-2.0
ChEBI Data Management
Commits
82806a11
Commit
82806a11
authored
2 months ago
by
Carlos Andres Moreno Velez
Browse files
Options
Downloads
Patches
Plain Diff
[carlosm] Add evidence_accession and evidence_source_id in flat_relation model
parent
16eabcea
Branches
dev
No related tags found
1 merge request
!40
Add evidence_source_id and evidence_accession in relation table
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/chebi_flat_files/flat_relation.sql
+2
-1
2 additions, 1 deletion
models/chebi_flat_files/flat_relation.sql
with
2 additions
and
1 deletion
models/chebi_flat_files/flat_relation.sql
+
2
−
1
View file @
82806a11
...
...
@@ -5,7 +5,8 @@ WITH cte_relation AS (
vr
.
compound_id
AS
init_id
,
vr
.
relation_type_id
,
vr
.
final_id
,
r
.
evidence_dbaccid
r
.
evidence_accession
,
r
.
evidence_source_id
FROM
{{
ref
(
'valid_relations'
)
}}
AS
vr
LEFT
JOIN
{{
ref
(
'relation'
)
}}
AS
r
ON
vr
.
compound_id
=
r
.
init_id
AND
vr
.
final_id
=
r
.
final_id
AND
vr
.
relation_type_id
=
r
.
relation_type_id
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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