1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
drop table titanic_fmt_train; create table titanic_fmt_train ( PassengerId int, Survived int, Pclass int, Name varchar, Sex varchar, Age double, SibSp int, Parch int, Ticket varchar, Fare double, Cabin varchar, Embarked varchar ) distribute by hash(PassengerId); insert into titanic_fmt_train select * from titanic_fmt order by PassengerId LIMIT 800;
drop table titanic_fmt_test; create table titanic_fmt_test ( PassengerId int, Survived int, Pclass int, Name varchar, Sex varchar, Age double, SibSp int, Parch int, Ticket varchar, Fare double, Cabin varchar, Embarked varchar ) distribute by hash(PassengerId); insert into titanic_fmt_test select * from titanic_fmt where passengerid > 801 ;
|