[ 
https://issues.apache.org/jira/browse/BAHIR-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15957649#comment-15957649
 ] 

ASF GitHub Bot commented on BAHIR-97:
-------------------------------------

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

    https://github.com/apache/bahir/pull/38#discussion_r110021854
  
    --- Diff: 
sql-streaming-akka/src/test/scala/org/apache/bahir/sql/streaming/akka/AkkaStreamSourceSuite.scala
 ---
    @@ -0,0 +1,188 @@
    +/*
    + * 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.bahir.sql.streaming.akka
    +
    +import java.io.File
    +
    +import scala.collection.JavaConverters._
    +import scala.collection.mutable
    +
    +import org.scalatest.BeforeAndAfter
    +
    +import org.apache.spark.{SharedSparkContext, SparkFunSuite}
    +import org.apache.spark.sql.{DataFrame, SQLContext}
    +import org.apache.spark.sql.execution.streaming.FileStreamSource.Timestamp
    +import org.apache.spark.sql.execution.streaming.LongOffset
    +
    +import org.apache.bahir.utils.BahirUtils
    +
    +class AkkaStreamSourceSuite extends SparkFunSuite with SharedSparkContext 
with BeforeAndAfter {
    +
    +  protected var akkaTestUtils: AkkaTestUtils = _
    +  protected val tempDir: File =
    +    new File(System.getProperty("java.io.tmpdir") + 
"/spark-akka-persistence")
    +
    +  akkaTestUtils = new AkkaTestUtils
    +  akkaTestUtils.setup()
    +
    +  before {
    +    tempDir.mkdirs()
    +  }
    +
    +  after {
    +    Persistence.close()
    +    BahirUtils.recursiveDeleteDir(tempDir)
    +  }
    +
    +  protected val tmpDir: String = tempDir.getAbsolutePath
    +
    +  protected def createStreamingDataframe(dir: String = tmpDir): 
(SQLContext, DataFrame) = {
    +
    +    val sqlContext: SQLContext = new SQLContext(sc)
    +
    --- End diff --
    
    Would you please change to use Sparksession instead of directly 
instantiating a SQLContext.


> Akka as a streaming source for SQL Streaming.
> ---------------------------------------------
>
>                 Key: BAHIR-97
>                 URL: https://issues.apache.org/jira/browse/BAHIR-97
>             Project: Bahir
>          Issue Type: New Feature
>          Components: Spark SQL Data Sources
>    Affects Versions: Spark-2.1.0
>            Reporter: Subhobrata Dey
>
> Hello,
> This issue is created to propose the addition of Akka compatible streaming 
> source for Spark SQL Streaming.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to