You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by GitBox <gi...@apache.org> on 2019/08/27 15:53:54 UTC
[GitHub] [carbondata] jackylk commented on a change in pull request #3364:
[CARBONDATA-3503][Carbon2] Adapt to SparkSessionExtension
jackylk commented on a change in pull request #3364: [CARBONDATA-3503][Carbon2] Adapt to SparkSessionExtension
URL: https://github.com/apache/carbondata/pull/3364#discussion_r318161221
##########
File path: examples/spark2/src/main/java/org/apache/carbondata/examples/sql/JavaCarbonSessionExample.java
##########
@@ -40,10 +39,12 @@ public static void main(String[] args) throws IOException {
SparkSession.Builder builder = SparkSession.builder()
.master("local")
.appName("JavaCarbonSessionExample")
- .config("spark.driver.host", "localhost");
+ .config("spark.driver.host", "localhost")
+ .config("spark.sql.extensions", "org.apache.spark.sql.CarbonExtensions");
- SparkSession carbon = new CarbonSession.CarbonBuilder(builder)
- .getOrCreateCarbonSession();
+ SparkSession carbon = builder.getOrCreate();
Review comment:
```suggestion
SparkSession spark = builder.getOrCreate();
```
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services