Ah, thank you very much. This will work for my use case. -- Jiang
-----Original Message----- From: Jason Altekruse [mailto:[email protected]] Sent: Monday, June 13, 2016 3:35 PM To: user <[email protected]> Subject: Re: How to extend system or session options Hi Jiang, Last fall we added a feature that makes the options in storage plugin config settable from within a query. These options are preferable to session level options, because they will be completely contained in the query and don't depend on session or system state. As these are dependent on the properties you define in your storage plugin configuration object they can be added without need to modify any Drill core code. You can read more about how to use them here [1] and here [2]. [1] - https://drill.apache.org/blog/2015/12/14/drill-1.4-released/ [2] - https://issues.apache.org/jira/browse/DRILL-4047 Jason Altekruse Software Engineer at Dremio Apache Drill Committer On Mon, Jun 13, 2016 at 10:55 AM, Jiang Wu <[email protected]> wrote: > I meant runtime options that are settable via: > > ALTER SYSTEM SET 'xyz' = true > ALTER SESSION SET 'xyz' = false > > The options can then be used to control the storage behavior at runtime. > > -- Jiang > > > -----Original Message----- > From: Jinfeng Ni [mailto:[email protected]] > Sent: Monday, June 13, 2016 10:51 AM > To: user <[email protected]> > Subject: Re: How to extend system or session options > > Are you talking about the configuration property for storage plugin? > You can add whatever configuration to storage plugin, but it's storage > plugin's job to parse and recognize the configuration. > > For example, hive storage plugin may have: > > { > ... > "hive.metastore.sasl.enabled": "false" > "your_configuration_name" : "your_configuration_setting" > } > > > > > On Mon, Jun 13, 2016 at 10:39 AM, Jiang Wu <[email protected]> > wrote: > > Hi All, I am working on a custom storage plugin for Drill. How do I > > add > some system and session options to Drill for my storage plugin? > > > > I looked the source code and it seems that options are statically > compiled. Is there a way for the storage plugin to add to the options > at the runtime upon storage plugin initialization? > > > > Thanks. > > > > -- Jiang > > > > >
