You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@carbondata.apache.org by sbelur <sw...@gmail.com> on 2019/02/26 13:50:25 UTC

Injection of custom rules in session

Hello,

Is it possible to inject extensions like that can be done with SparkSession.
The Carbon Session Builder
does not seem to use the extensions.

If this is possible, please let me know how to achieve this. I am making
this note by comparing
getOrCreate with the custom get functions in CarbonSession.


thanks
swaroop



--
Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/

Re: Injection of custom rules in session

Posted by David CaiQiang <da...@gmail.com>.
From spark 2.2, Spark can inject extensions.  
for example:
val spark = SparkSession
  .builder()
  ...
  .withExtensions(...)
  ...

CarbonSession.CarbonBuilder uses default extensions to create CarbonSession. 
It doesn't inject parser, analyzer and so on.

And the extensions variable is private in the apache.spark.sql package.
 Maybe We can't get the extensions directly to inject some rules by self.

So in my opinion, we should modify CarbonBuilder to support it. 




-----
Best Regards
David Cai
--
Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/

Re: Injection of custom rules in session

Posted by akashrn5 <ak...@gmail.com>.
hi,

extensions you mean to say rules? Did not get the question clearly



--
Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/