Skip to content
This repository has been archived by the owner. It is now read-only.

Fix popularplaces table for edges queries #110

Merged
merged 2 commits into from Aug 16, 2017
Merged

Fix popularplaces table for edges queries #110

merged 2 commits into from Aug 16, 2017

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

LGTM

Loading

@c-w c-w merged commit c76c153 into master Aug 16, 2017
2 checks passed
Loading
@c-w c-w deleted the fix-edges-queries branch Aug 16, 2017
@c-w c-w removed the in progress label Aug 16, 2017
rachelnicole pushed a commit that referenced this issue Jan 24, 2018
Fix sentiment dereference for latest model changes
rachelnicole pushed a commit that referenced this issue 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
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants