Skip to content

Commit

Permalink
Fixes #26
Browse files Browse the repository at this point in the history
Adds typealias `org.jetbrains.spark.api.SparkSession` to `org.apache.spark.sql.SparkSession`

Signed-off-by: Pasha Finkelshteyn <asm0dey@jetbrains.com>
  • Loading branch information
asm0dey committed Jun 29, 2020
1 parent f039e5d commit ffdb41d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
package org.jetbrains.spark.api.examples

import org.apache.spark.api.java.function.ReduceFunction
import org.apache.spark.sql.SparkSession
import org.jetbrains.spark.api.*

data class Q<T>(val id: Int, val text: T)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ fun schema(type: KType, map: Map<String, KType> = mapOf()): DataType {
}
}

typealias SparkSession = org.apache.spark.sql.SparkSession

fun SparkContext.setLogLevel(level: SparkLogLevel) = setLogLevel(level.name)

enum class SparkLogLevel {
Expand Down

0 comments on commit ffdb41d

Please sign in to comment.