ajantha-bhat commented on a change in pull request #4031: URL: https://github.com/apache/carbondata/pull/4031#discussion_r549922272 ########## File path: integration/presto/src/main/prestosql/org/apache/carbondata/presto/CarbondataColumnConstraint.java ########## @@ -1,93 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with Review comment: only this I think, `getPartitionFilters` is needed for prestodb as it doesn't have partition pruning. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
CarbonDataQA2 commented on pull request #4031: URL: https://github.com/apache/carbondata/pull/4031#issuecomment-752365468 Build Success with Spark 2.3.4, Please check CI http://121.244.95.60:12444/job/ApacheCarbonPRBuilder2.3/5263/ ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
CarbonDataQA2 commented on pull request #4031: URL: https://github.com/apache/carbondata/pull/4031#issuecomment-752366682 Build Success with Spark 2.4.5, Please check CI http://121.244.95.60:12444/job/ApacheCarbon_PR_Builder_2.4.5/3502/ ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
asfgit closed pull request #4031: URL: https://github.com/apache/carbondata/pull/4031 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
akkio-97 commented on a change in pull request #4031: URL: https://github.com/apache/carbondata/pull/4031#discussion_r550019982 ########## File path: integration/presto/src/main/java/org/apache/carbondata/presto/PrestoCarbonVectorizedRecordReader.java ########## @@ -223,8 +223,6 @@ private void initBatch() { for (int i = 0; i < fields.length; i++) { if (queryModel.isDirectVectorFill()) { vectors[i] = new ColumnarVectorWrapperDirect(columnarBatch.column(i)); - } else { - vectors[i] = new CarbonColumnVectorWrapper(columnarBatch.column(i), filteredRows); Review comment: done ########## File path: integration/spark/src/test/scala/org/apache/carbondata/integration/spark/testsuite/dataload/SparkStoreCreatorForPresto.scala ########## @@ -0,0 +1,385 @@ +/* + * 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.carbondata.integration.spark.testsuite.dataload + +import java.io.{File, PrintWriter} +import java.util.UUID + +import scala.util.Random + +import org.apache.commons.io.FileUtils +import org.apache.spark.sql.CarbonEnv +import org.apache.spark.sql.test.util.QueryTest +import org.scalatest.BeforeAndAfterAll + +import org.apache.carbondata.core.constants.CarbonCommonConstants +import org.apache.carbondata.core.datastore.impl.FileFactory +import org.apache.carbondata.core.util.{CarbonProperties, CarbonUtil} +import org.apache.carbondata.core.util.path.CarbonTablePath +import org.apache.carbondata.sdk.file.{CarbonSchemaReader, CarbonWriterBuilder} + +class SparkStoreCreatorForPresto extends QueryTest with BeforeAndAfterAll{ + + private val timestampFormat = CarbonProperties.getInstance() + .getProperty(CarbonCommonConstants.CARBON_TIMESTAMP_FORMAT) + private val dateFormat = CarbonProperties.getInstance() + .getProperty(CarbonCommonConstants.CARBON_DATE_FORMAT) + private val rootPath = new File(this.getClass.getResource("/").getPath + + "../../../..").getCanonicalPath + private val sparkStorePath = s"$rootPath/integration/spark/target/spark_store" + + val storePath = storeLocation + + override def beforeAll: Unit = { + CarbonProperties.getInstance() + .addProperty(CarbonCommonConstants.CARBON_DATE_FORMAT, + CarbonCommonConstants.CARBON_DATE_DEFAULT_FORMAT) + CarbonProperties.getInstance() + .addProperty(CarbonCommonConstants.CARBON_TIMESTAMP_FORMAT, + CarbonCommonConstants.CARBON_TIMESTAMP_DEFAULT_FORMAT) + sql("drop database if exists presto_spark_db cascade") + sql("create database presto_spark_db") + sql("use presto_spark_db") + CarbonUtil.deleteFoldersAndFiles(FileFactory.getCarbonFile + (s"$sparkStorePath")) + } + + override def afterAll: Unit = { + if (null != dateFormat) { + CarbonProperties.getInstance() + .addProperty(CarbonCommonConstants.CARBON_DATE_FORMAT, dateFormat) + } + if(null != timestampFormat) { + CarbonProperties.getInstance() + .addProperty(CarbonCommonConstants.CARBON_TIMESTAMP_FORMAT, timestampFormat) + } + val source = s"$rootPath/integration/spark/target/warehouse/presto_spark_db.db/" + val srcDir = new File(source) + + // Presto will later use this store path to query + val destination = s"$rootPath/integration/spark/target/spark_store/" + val destDir = new File(destination) + FileUtils.copyDirectory(srcDir, destDir) + FileUtils.deleteDirectory(srcDir) + sql("drop table update_table") Review comment: done ########## File path: integration/presto/src/main/prestosql/org/apache/carbondata/presto/CarbondataColumnConstraint.java ########## @@ -1,93 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with Review comment: done ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
ajantha-bhat commented on pull request #4031: URL: https://github.com/apache/carbondata/pull/4031#issuecomment-752514117 LGTM. merged. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
Free forum by Nabble | Edit this page |