Skip to content
This repository was archived by the owner on Mar 7, 2018. It is now read-only.

Fix popularplaces table for edges queries#110

Merged
c-w merged 2 commits intomasterfrom
fix-edges-queries
Aug 16, 2017
Merged

Fix popularplaces table for edges queries#110
c-w merged 2 commits intomasterfrom
fix-edges-queries

Conversation

@c-w
Copy link
Contributor

@c-w c-w commented Aug 15, 2017

We query the popularplaces table like this:

    SELECT placeid, mentioncount, centroidlat, centroidlon
    FROM fortis.popularplaces
    WHERE period = ?
    AND periodtype = ?
    AND pipelinekey = ?
    AND externalsourceid = ?
    AND conjunctiontopic1 = ?
    AND conjunctiontopic2 = ?
    AND conjunctiontopic3 = ?
    AND (periodstartdate, periodenddate) <= (?, ?)
    AND (periodstartdate, periodenddate) >= (?, ?)

So we need to jiggle around some of the column keys so that we can query on period{start,end}date.

We'll dereference it via placeid in the graphql layer
Copy link
Contributor

@jcjimenez jcjimenez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@c-w c-w merged commit c76c153 into master Aug 16, 2017
@c-w c-w deleted the fix-edges-queries branch August 16, 2017 16:29
@c-w c-w removed the in progress label Aug 16, 2017
rachelnicole pushed a commit that referenced this pull request Jan 24, 2018
Fix sentiment dereference for latest model changes
rachelnicole pushed a commit that referenced this pull request Jan 24, 2018
Add more logging to cassandra sink
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants