MCPcopy Create free account
hub / github.com/ddf-project/DDF / createTableMtcars

Method createTableMtcars

spark/src/test/java/io/ddf/spark/BaseTest.java:111–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109 }
110
111 public void createTableMtcars() throws DDFException {
112 manager.sql("drop table if exists mtcars", "SparkSQL");
113
114 manager.sql("CREATE TABLE mtcars ("
115 + "mpg double, cyl int, disp double, hp int, drat double, wt double, qsec double, vs int, am int, gear int, carb int"
116 + ") ROW FORMAT DELIMITED FIELDS TERMINATED BY ' '", "SparkSQL");
117
118 manager.sql("load data local inpath '../resources/test/mtcars' into table mtcars", "SparkSQL");
119 }
120
121 public void createTableCarOwner() throws DDFException {
122 manager.sql("drop table if exists carowner", "SparkSQL");

Callers 1

Calls 1

sqlMethod · 0.65

Tested by

no test coverage detected