[Discussion] How to pass some options into Insert Into command

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[Discussion] How to pass some options into Insert Into command

David CaiQiang
Hi all,
    For data loading, we can pass some options into load data command by
using options clause, but insert into command can't.
   
    How to pass some options into Insert Into command?  some options as
following.
    1. implement options clause for insert into command
    2. use hint
    3. set key=value
    4. other methods to implement the same result, for example,  use
"clustered by random(2) " to implement "GLOBAL_SORT_PARTITIONS"="2"
    5. ??

   any suggestion?



-----
Best Regards
David Cai
--
Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/
Best Regards
David Cai
Reply | Threaded
Open this post in threaded view
|

Re: [Discussion] How to pass some options into Insert Into command

qiuchenjian
i think "set key=value" is a common method, like hive and sparksql



--
Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: [Discussion] How to pass some options into Insert Into command

xuchuanyin
Hi qiu, the problem is that carbondata current do not read those options from the environment.

As far as I know, there is no way to specify options in insert into command in carbondata currently.

Reply | Threaded
Open this post in threaded view
|

Re: [Discussion] How to pass some options into Insert Into command

xuchuanyin
In reply to this post by qiuchenjian
Hi qiu, the problem is that carbondata current do not read those options from the environment. As far as I know, there is no way to specify options in insert into command in carbondata currently.
Reply | Threaded
Open this post in threaded view
|

Re: [Discussion] How to pass some options into Insert Into command

qiuchenjian
hi xuchuanyin
I just suggest the grammar of Carbon is simalar to SparkSql, if we don't
support the "set value", option clause is OK, it's better to handle
different insert SQL using different options in a session  



--
Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: [Discussion] How to pass some options into Insert Into command

ChuanYin Xu
Using options in insert command may result in compatibility related problems with other SparkSQL engines.

If we really want to provide some options, I'd suggest using hint instead.
Reply | Threaded
Open this post in threaded view
|

Re: [Discussion] How to pass some options into Insert Into command

David CaiQiang
There is no options clause in hive load data command too. We added...

So maybe we can do the same on insert into command.



-----
Best Regards
David Cai
--
Sent from: http://apache-carbondata-dev-mailing-list-archive.1130556.n5.nabble.com/
Best Regards
David Cai
Reply | Threaded
Open this post in threaded view
|

Re: [Discussion] How to pass some options into Insert Into command

litao
hi, all
does this discuss has a conclusion?



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