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

    https://github.com/apache/carbondata/pull/2328#discussion_r196087809
  
    --- Diff: 
integration/spark-common/src/main/scala/org/apache/carbondata/spark/StreamingOption.scala
 ---
    @@ -0,0 +1,67 @@
    +/*
    + * 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.spark
    +
    +import scala.collection.mutable
    +
    +import org.apache.spark.sql.streaming.{ProcessingTime, Trigger}
    +
    +import 
org.apache.carbondata.common.exceptions.sql.MalformedCarbonCommandException
    +import org.apache.carbondata.core.constants.CarbonCommonConstants
    +import org.apache.carbondata.core.util.path.CarbonTablePath
    +import org.apache.carbondata.streaming.parser.CarbonStreamParser
    +
    +class StreamingOption(val userInputMap: Map[String, String]) {
    +  def trigger: Trigger = {
    +    val trigger = userInputMap.getOrElse(
    +      "trigger", throw new MalformedCarbonCommandException("trigger must 
be specified"))
    +    val interval = userInputMap.getOrElse(
    +      "interval", throw new MalformedCarbonCommandException("interval must 
be specified"))
    +    trigger match {
    +      case "ProcessingTime" => ProcessingTime(interval)
    --- End diff --
    
    but it is still there in spark 2.1.0


---

Reply via email to