Skip to content

Commit

Permalink
Undoing changes not needed for this PR
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreSchumacher committed May 16, 2014
1 parent 210e9cb commit f0ad3cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@ package org.apache.spark.sql.catalyst.types

import java.sql.Timestamp

import scala.reflect.ClassTag
import scala.reflect.runtime.universe.{typeTag, TypeTag, runtimeMirror}
import scala.reflect.runtime.universe.{typeTag, TypeTag}

import org.apache.spark.sql.catalyst.expressions.Expression

import org.apache.spark.util.Utils

abstract class DataType {
/** Matches any expression that evaluates to this DataType */
def unapply(a: Expression): Boolean = a match {
Expand All @@ -40,11 +37,6 @@ abstract class NativeType extends DataType {
type JvmType
@transient val tag: TypeTag[JvmType]
val ordering: Ordering[JvmType]

@transient val classTag = {
val mirror = runtimeMirror(Utils.getSparkClassLoader)
ClassTag[JvmType](mirror.runtimeClass(tag.tpe))
}
}

case object StringType extends NativeType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ private[sql] abstract class SparkStrategies extends QueryPlanner[SparkPlan] {
case logical.InsertIntoTable(table: ParquetRelation, partition, child, overwrite) =>
InsertIntoParquetTable(table, planLater(child), overwrite)(sparkContext) :: Nil
case PhysicalOperation(projectList, filters, relation: ParquetRelation) =>
// Note: we do not actually remove the filters that were pushed down to Parquet from
// the plan, in case that some of the predicates cannot be evaluated there because
// they contain complex operations, such as CASTs.
// TODO: rethink whether conjuntions that are handed down to Parquet should be removed
// from the list of higher-level filters.
pruneFilterProject(
projectList,
filters,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ import parquet.schema.PrimitiveType.{PrimitiveTypeName => ParquetPrimitiveTypeNa
import parquet.schema.Type.Repetition

import org.apache.spark.sql.catalyst.analysis.{MultiInstanceRelation, UnresolvedException}
import org.apache.spark.sql.catalyst.expressions._
import org.apache.spark.sql.catalyst.expressions.{Attribute, AttributeReference, Row}
import org.apache.spark.sql.catalyst.plans.logical.{LogicalPlan, LeafNode}
import org.apache.spark.sql.catalyst.types._
import org.apache.spark.sql.catalyst.types.ArrayType
import org.apache.spark.sql.catalyst.expressions.AttributeReference

// Implicits
import scala.collection.JavaConversions._
Expand Down

0 comments on commit f0ad3cf

Please sign in to comment.