Github user xuchuanyin commented on a diff in the pull request: https://github.com/apache/carbondata/pull/2715#discussion_r219786560 --- Diff: integration/spark-common-test/src/test/scala/org/apache/carbondata/integration/spark/testsuite/dataload/TestLoadDataWithCompression.scala --- @@ -42,6 +44,112 @@ case class Rcd(booleanField: Boolean, shortField: Short, intField: Int, bigintFi dateField: String, charField: String, floatField: Float, stringDictField: String, stringSortField: String, stringLocalDictField: String, longStringField: String) +/** + * This compressor actually will not compress or decompress anything. + * It is used for test case of specifying customized compressor. + */ +class CustomizeCompressor extends Compressor { + override def getName: String = "org.apache.carbondata.integration.spark.testsuite.dataload.CustomizeCompressor" --- End diff -- yeah, I also though about this earlier, but the problem is that we need to store the relationship between 'shortName' and 'className', which means that user has to register the compressor explicitly OR we need a property (or even a file) to manage that relationship. In current PR's implementation, there is no need to register. It's convenient for usage.
---