Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1995#discussion_r170408310
  
    --- Diff: 
integration/spark2/src/main/scala/org/apache/spark/sql/execution/datasources/CarbonFileLevelFormat.scala
 ---
    @@ -0,0 +1,426 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.spark.sql
    +
    +import java.net.URI
    +import java.util
    +
    +import scala.collection.mutable.ArrayBuffer
    +
    +import org.apache.hadoop.conf.Configuration
    +import org.apache.hadoop.fs.{FileStatus, Path}
    +import org.apache.hadoop.mapred.JobConf
    +import org.apache.hadoop.mapreduce.task.TaskAttemptContextImpl
    +import org.apache.hadoop.mapreduce._
    +import org.apache.hadoop.mapreduce.lib.input.FileSplit
    +import org.apache.parquet.filter2.compat.FilterCompat
    +import org.apache.parquet.hadoop.{ParquetInputFormat, ParquetRecordReader}
    +import org.apache.parquet.hadoop.codec.CodecConfig
    +import org.apache.spark.{TaskContext, TaskKilledException}
    +import org.apache.spark.deploy.SparkHadoopUtil
    +import org.apache.spark.internal.Logging
    +import org.apache.spark.sql.{SQLContext, SparkSession}
    +import org.apache.spark.sql.catalyst.InternalRow
    +import 
org.apache.spark.sql.catalyst.expressions.codegen.GenerateUnsafeProjection
    +import org.apache.spark.sql.catalyst.expressions.{GenericInternalRow, 
JoinedRow, UnsafeRow}
    +import org.apache.spark.sql.catalyst.parser.CatalystSqlParser
    +import org.apache.spark.sql.catalyst.util.CompressionCodecs
    +import org.apache.spark.sql.execution.DataSourceScanExec
    +import org.apache.spark.sql.execution.datasources._
    +import 
org.apache.spark.sql.execution.datasources.parquet.{ParquetLogRedirector, 
ParquetOutputWriter, ParquetReadSupport, VectorizedParquetRecordReader}
    +import org.apache.spark.sql.execution.datasources.text.{TextOptions, 
TextOutputWriter}
    +import org.apache.spark.sql.optimizer.CarbonFilters
    +import org.apache.spark.sql.sources.{BaseRelation, DataSourceRegister, 
Filter, RelationProvider}
    +import org.apache.spark.sql.types.{AtomicType, IntegerType, StructField, 
StructType}
    +
    +import org.apache.carbondata.common.logging.LogServiceFactory
    +import org.apache.carbondata.core.constants.CarbonCommonConstants
    +import org.apache.carbondata.core.datamap.{DataMapStoreManager, 
TableDataMap}
    +import org.apache.carbondata.core.metadata.{AbsoluteTableIdentifier, 
ColumnarFormatVersion}
    +import org.apache.carbondata.core.metadata.schema.table.column.ColumnSchema
    +import org.apache.carbondata.core.reader.CarbonHeaderReader
    +import org.apache.carbondata.core.scan.expression.logical.AndExpression
    +import org.apache.carbondata.core.scan.model.QueryModel
    +import org.apache.carbondata.core.util.{CarbonProperties, CarbonUtil, 
TaskMetricsMap, ThreadLocalSessionInfo}
    +import org.apache.carbondata.hadoop.api.{CarbonFileInputFormat, 
CarbonTableInputFormat, DataMapJob}
    +import org.apache.carbondata.hadoop.streaming.CarbonStreamRecordReader
    +import org.apache.carbondata.hadoop.{CarbonInputSplit, CarbonProjection, 
CarbonRecordReader, InputMetricsStats}
    +import org.apache.carbondata.spark.CarbonOption
    +import org.apache.carbondata.spark.rdd.{CarbonSparkPartition, 
SparkDataMapJob}
    +import org.apache.carbondata.spark.util.CarbonScalaUtil
    +
    +
    +class CarbonFileLevelFormat extends FileFormat
    --- End diff --
    
    How about the current `CarbonFileFormat`, is it renamed to 
`CarbonTableLevelFormat`?


---

Reply via email to