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/
Best Regards
David Cai