Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ private[hbase] trait HBaseStrategies extends QueryPlanner[SparkPlan] {
tableName, nameSpace, hbaseTableName,
colsSeq, keyCols, nonKeyCols)
(hbaseSQLContext))
case logical.BulkLoadIntoTable(table: HBaseRelation, path) =>
execution.BulkLoadIntoTable(table, path)(hbaseSQLContext) :: Nil
case logical.LoadDataIntoTable(path, table: HBaseRelation, isLocal) =>
execution.BulkLoadIntoTable(path, table, isLocal)(hbaseSQLContext) :: Nil
case InsertIntoTable(table: HBaseRelation, partition, child, _) =>
new InsertIntoHBaseTable(table, planLater(child))(hbaseSQLContext) :: Nil
case logical.DropTablePlan(tableName) => Seq(execution.DropHbaseTableCommand(tableName)(hbaseSQLContext))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ case class InsertIntoHBaseTable(
}

@DeveloperApi
case class BulkLoadIntoTable(relation: HBaseRelation, path: String)(
case class BulkLoadIntoTable(path: String, relation: HBaseRelation, isLocal: Boolean)(
@transient hbContext: HBaseSQLContext) extends LeafNode {

val jobConf = new JobConf(hbContext.sc.hadoopConfiguration)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ case class CreateHBaseTablePlan(tableName: String,

case class DropTablePlan(tableName: String) extends Command


case class BulkLoadIntoTable(table: HBaseRelation, path: String) extends LeafNode {
override def output = Seq.empty
// TODO:need resolved here?

}

case class LoadDataIntoTable(path: String, table: String, isLocal: Boolean) extends LeafNode {
override def output = Seq.empty
}