Last active
November 30, 2017 00:05
-
-
Save gbraccialli/3f44138d9538e1ac0454e1ec2818cde1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://recsys.yoochoose.net/index.html | |
https://github.com/g-rutter/Clikistreams | |
https://github.com/opencypher/cypher-for-apache-spark | |
http://tinkerpop.apache.org/docs/current/reference/#sparkgraphcomputer | |
https://github.com/apache/tinkerpop/tree/master/spark-gremlin | |
https://github.com/datastax/graph-examples | |
https://www.datastax.com/dev/blog/dse-graph-frame | |
https://neo4j.com/docs/cypher-refcard/current/ | |
https://developer.teradata.com/aster/articles/aster-npath-guide | |
SELECT * | |
FROM NPATH ( | |
ON aggregate_clicks | |
PARTITION BY sessionid | |
ORDER BY clicktime ASC | |
MODE ( NONOVERLAPPING ) | |
PATTERN ( 'H+.D*.X*.P1.P2+' ) | |
SYMBOLS ( 'true' AS X, | |
pagetype = 'home' AS H, | |
pagetype <> 'home' AND pagetype <> 'checkout' AS D, | |
pagetype = 'checkout' AS P1, | |
pagetype = 'checkout' AND productprice > 100 AND productprice > LAG (productprice, 1, 100::REAL ) AS P2 | |
) | |
RESULT ( | |
FIRST ( productprice OF P1 ) AS first_product, | |
MAX_CHOOSE ( productprice, productname OF P2 ) AS max_product, | |
FIRST ( sessionid OF P2 ) AS sessionid | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment