forked from D-Net/dnet-hadoop
More progress on viewsStats
This commit is contained in:
parent
2d2d1b9694
commit
f78b5d3f86
|
@ -384,7 +384,8 @@ public class PiwikStatsDB {
|
||||||
|
|
||||||
System.out.println("====> Creating views_stats table");
|
System.out.println("====> Creating views_stats table");
|
||||||
String create_view_stats =
|
String create_view_stats =
|
||||||
"CREATE TABLE IF NOT EXISTS views_stats STORED AS PARQUET AS SELECT * FROM views_stats_tmp";
|
"CREATE TABLE IF NOT EXISTS " + ConnectDB.getUsageStatsDBSchema() + "views_stats " +
|
||||||
|
"STORED AS PARQUET AS SELECT * FROM " + ConnectDB.getUsageStatsDBSchema() + "views_stats_tmp";
|
||||||
stmt.executeUpdate(create_view_stats);
|
stmt.executeUpdate(create_view_stats);
|
||||||
System.out.println("====> Created views_stats table");
|
System.out.println("====> Created views_stats table");
|
||||||
|
|
||||||
|
@ -418,7 +419,8 @@ public class PiwikStatsDB {
|
||||||
|
|
||||||
System.out.println("====> Creating pageviews_stats table");
|
System.out.println("====> Creating pageviews_stats table");
|
||||||
String create_pageviews_stats =
|
String create_pageviews_stats =
|
||||||
"CREATE TABLE IF NOT EXISTS pageviews_stats STORED AS PARQUET AS SELECT * FROM pageviews_stats_tmp";
|
"CREATE TABLE IF NOT EXISTS " + ConnectDB.getUsageStatsDBSchema() + "pageviews_stats " +
|
||||||
|
"STORED AS PARQUET AS SELECT * FROM " + ConnectDB.getUsageStatsDBSchema() + "pageviews_stats_tmp";
|
||||||
stmt.executeUpdate(create_pageviews_stats);
|
stmt.executeUpdate(create_pageviews_stats);
|
||||||
System.out.println("====> Created pageviews_stats table");
|
System.out.println("====> Created pageviews_stats table");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue