Skip to content

Commit

Permalink
remove the TODO and add resolved condition for HiveTable
Browse files Browse the repository at this point in the history
  • Loading branch information
chenghao-intel committed May 10, 2015
1 parent a8260e8 commit f87ace6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ case class CreateTableAsSelect(

override def output: Seq[Attribute] = Seq.empty[Attribute]
override lazy val resolved: Boolean =
// TODO add more condition?
tableDesc.specifiedDatabase.isDefined &&
tableDesc.schema.size > 0 &&
tableDesc.serde.isDefined &&
tableDesc.inputFormat.isDefined &&
tableDesc.outputFormat.isDefined &&
childrenResolved
}

Expand Down Expand Up @@ -254,7 +255,6 @@ private[hive] object HiveQl {

/**
* Returns the HiveConf
* TODO get it from HiveContext?
*/
private[this] def hiveConf(): HiveConf = {
val ss = SessionState.get() // SessionState is lazy initializaion, it can be null here
Expand Down

0 comments on commit f87ace6

Please sign in to comment.