You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@quickstep.apache.org by ji...@apache.org on 2017/09/18 19:33:06 UTC

[2/6] incubator-quickstep git commit: Updates to API

Updates to API


Project: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/commit/718bb689
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/tree/718bb689
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/diff/718bb689

Branch: refs/heads/trace
Commit: 718bb689bdb548c431c7e104b5f5eeda145f13d4
Parents: c29587a
Author: Jianqiao Zhu <ji...@cs.wisc.edu>
Authored: Sat Sep 2 23:06:37 2017 -0500
Committer: jianqiao <ji...@node-2.jianqiao.quickstep-pg0.wisc.cloudlab.us>
Committed: Mon Sep 18 14:30:30 2017 -0500

----------------------------------------------------------------------
 api/python/lineage.py | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quickstep/blob/718bb689/api/python/lineage.py
----------------------------------------------------------------------
diff --git a/api/python/lineage.py b/api/python/lineage.py
new file mode 100644
index 0000000..bd6db00
--- /dev/null
+++ b/api/python/lineage.py
@@ -0,0 +1,16 @@
+from quickstep import Quickstep
+
+qs = Quickstep('/Users/jianqiao/Desktop/incubator-quickstep/build/Debug/quickstep_client')
+
+vertices = [1299454, 31623412, 31739916, 31593563]
+
+# Truncate old tables.
+qs.execute('DROP TABLE cur; DROP TABLE next; DROP TABLE answer;')
+qs.execute('CREATE TABLE cur(id INT); CREATE TABLE next(id INT); CREATE TABLE answer(id INT);')
+
+stmts = ''
+for v in vertices:
+  stmts += 'INSERT INTO cur VALUES(' + str(v) + '); '
+qs.execute(stmts)
+qs.execute('INSERT INTO answer SELECT id FROM cur;')
+