Skip to content

Commit

Permalink
Rename 'year' and 'day' fields in the example
Browse files Browse the repository at this point in the history
Calcite thinks they're reserved tokens.
  • Loading branch information
asuhan committed Jan 19, 2016
1 parent e184933 commit 63e426e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Tests/UniversityExample/create_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ CREATE TABLE classroom(building text encoding dict, room_number text encoding di
CREATE TABLE department(dept_name text encoding dict, building text encoding dict, budget text encoding dict) WITH (fragment_size=2);
CREATE TABLE course(course_id text encoding dict, title text encoding dict, dept_name text encoding dict, credits smallint) WITH (fragment_size=2);
CREATE TABLE instructor(ID text encoding dict, name text NOT NULL encoding dict, dept_name text encoding dict, salary integer) WITH (fragment_size=2);
CREATE TABLE section(course_id text encoding dict, sec_id text encoding dict, semester text encoding dict, year smallint, building text encoding dict, room_number text encoding dict, time_slot_id text encoding dict) WITH (fragment_size=2);
CREATE TABLE teaches(ID text encoding dict, course_id text encoding dict, sec_id text encoding dict, semester text encoding dict, year smallint) WITH (fragment_size=2);
CREATE TABLE section(course_id text encoding dict, sec_id text encoding dict, semester text encoding dict, year_ smallint, building text encoding dict, room_number text encoding dict, time_slot_id text encoding dict) WITH (fragment_size=2);
CREATE TABLE teaches(ID text encoding dict, course_id text encoding dict, sec_id text encoding dict, semester text encoding dict, year_ smallint) WITH (fragment_size=2);
CREATE TABLE student(ID text encoding dict, name text NOT NULL encoding dict, dept_name text encoding dict, tot_cred smallint) WITH (fragment_size=2);
CREATE TABLE takes(ID text encoding dict, course_id text encoding dict, sec_id text encoding dict, semester text encoding dict, year smallint, grade text encoding dict) WITH (fragment_size=2);
CREATE TABLE takes(ID text encoding dict, course_id text encoding dict, sec_id text encoding dict, semester text encoding dict, year_ smallint, grade text encoding dict) WITH (fragment_size=2);
CREATE TABLE advisor(s_ID text encoding dict, i_ID text encoding dict) WITH (fragment_size=2);
CREATE TABLE prereq(course_id text encoding dict, prereq_id text encoding dict) WITH (fragment_size=2);
CREATE TABLE timeslot(time_slot_id text encoding dict, day text encoding dict, start_time time, end_time time) WITH (fragment_size=2);
CREATE TABLE timeslot(time_slot_id text encoding dict, day_ text encoding dict, start_time time, end_time time) WITH (fragment_size=2);
COPY classroom FROM './classroom.csv';
COPY department FROM './department.csv';
COPY course FROM './course.csv';
Expand Down
2 changes: 1 addition & 1 deletion Tests/UniversityExample/section.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
course_id,sec_id,semester,year,building,room_number,time_slot_id
course_id,sec_id,semester,year_,building,room_number,time_slot_id
BIO-101,1,Summer,2009,Painter,514,B
BIO-301,1,Summer,2010,Painter,514,A
CS-101,1,Fall,2009,Packard,101,H
Expand Down
2 changes: 1 addition & 1 deletion Tests/UniversityExample/takes.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ID,course_id,sec_id,semester,year,grade
ID,course_id,sec_id,semester,year_,grade
00128,CS-101,1,Fall,2009,A
00128,CS-347,1,Fall,2009,A-
12345,CS-101,1,Fall,2009,C
Expand Down
2 changes: 1 addition & 1 deletion Tests/UniversityExample/teaches.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ID,course_id,sec_id,semester,year
ID,course_id,sec_id,semester,year_
10101,CS-101,1,Fall,2009
10101,CS-315,1,Spring,2010
10101,CS-347,1,Fall,2009
Expand Down
2 changes: 1 addition & 1 deletion Tests/UniversityExample/timeslot.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
time_slot_id,day,start_time,end_time
time_slot_id,day_,start_time,end_time
A,M,8:00:00,8:50:00
A,W,8:00:00,8:50:00
A,F,8:00:00,8:50:00
Expand Down

0 comments on commit 63e426e

Please sign in to comment.