是不是你没有输入完整的路径,你用的是combo分区的话,你需要两个分区路径。如:
existsTable("dfs://compoDB/20170808/0_50",`pt)
我想要检查表格pt在不在我设定的分布式数据中,根据教程的指示,我的第二个existsTable()却得到了False的结果,这是为什么?
如下是我的代码:
n=1000000 ID=rand(100, n) dates=2017.08.07..2017.08.11 date=rand(dates, n) x=rand(10.0, n) t=table(ID, date, x); Date = database(, VALUE, 2017.08.07..2017.08.11) ID=database(, RANGE, 0 50 100); index = database("dfs://compoDB", COMPO, [Date, ID]); pt = index.createPartitionedTable(t, `pt, `date`ID) pt.append!(t); existsTable("dfs://compoDB",`pt) existsTable("dfs://compoDB/20170808",`pt)