Skip to content

Commit

Permalink
append the FlintPPLSparkExtensions to the spark conf (#111)
Browse files Browse the repository at this point in the history
* hard code append the FlintPPLSparkExtensions to the spark conf creation by the FlintREPL

Signed-off-by: YANGDB <[email protected]>

* hard code append the FlintPPLSparkExtensions to the spark conf creation by the FlintREPL

Signed-off-by: YANGDB <[email protected]>

---------

Signed-off-by: YANGDB <[email protected]>
  • Loading branch information
YANG-DB authored Oct 28, 2023
1 parent 1f8dda9 commit ad9989e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ trait FlintJobExecutor {
def createSparkConf(): SparkConf = {
new SparkConf()
.setAppName(getClass.getSimpleName)
.set("spark.sql.extensions", "org.opensearch.flint.spark.FlintSparkExtensions")
.set(
"spark.sql.extensions",
"org.opensearch.flint.spark.FlintPPLSparkExtensions,org.opensearch.flint.spark.FlintSparkExtensions")
}

def createSparkSession(conf: SparkConf): SparkSession = {
Expand Down

0 comments on commit ad9989e

Please sign in to comment.