Skip to content

Commit

Permalink
Merge pull request #130 from opentargets/rm-lit-update-sentences
Browse files Browse the repository at this point in the history
remove sentences column
  • Loading branch information
remo87 authored Feb 8, 2023
2 parents b047463 + 279f043 commit a5bc6c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/db/QLITAGG.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ case class QLITAGG(
val year: Column = column("year")
val month: Column = column("month")
val day: Column = column("day")
val sentences: Column = column("sentences")

val T: Column = column(tableName)
val TIdx: Column = column(indexTableName)

Expand All @@ -40,7 +40,7 @@ case class QLITAGG(
)

val litQ: Q = Q(
Select(pmid :: pmcid :: date :: year :: month :: sentences :: Nil),
Select(pmid :: pmcid :: date :: year :: month :: Nil),
From(T),
PreWhere(F.in(pmid, pmidsQ(pmid :: Nil).toColumn(None)))
)
Expand Down Expand Up @@ -81,7 +81,7 @@ case class QLITAGG(
val q = filterDate match {
case Some(value) =>
Q(
Select(pmid :: pmcid :: date :: year :: month :: sentences :: Nil),
Select(pmid :: pmcid :: date :: year :: month :: Nil),
From(pmidsQ(pmid :: Nil).toColumn(None), Some("L")),
Join(litQ.toColumn(None),
Some("left"),
Expand All @@ -105,7 +105,7 @@ case class QLITAGG(
)
case _ =>
Q(
Select(pmid :: pmcid :: date :: year :: month :: sentences :: Nil),
Select(pmid :: pmcid :: date :: year :: month :: Nil),
From(pmidsQ(pmid :: Nil).toColumn(None), Some("L")),
Join(litQ.toColumn(None),
Some("left"),
Expand Down

0 comments on commit a5bc6c7

Please sign in to comment.