You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@carbondata.apache.org by xuchuanyin <xu...@hust.edu.cn> on 2017/11/28 14:55:33 UTC

回复:carbondata数据导出

why not use spark DataFrameWriter API ? 发自网易邮箱手机版 在2017年11月27日 16:23,MickYuan 写道: 请问carbondata可以实现如下的业务需求吗: 1.将某个表导出成csv文件。 2.将某个sql查询的结果导出成csv文件。 谢谢! -- Sent from: http://apache-carbondata-user-mailing-list.3231.n8.nabble.com/

Re: 回复:carbondata数据导出

Posted by MickYuan <mi...@qq.com>.
presto还没用过,不过还是感觉有点麻烦了。。。



--
Sent from: http://apache-carbondata-user-mailing-list.3231.n8.nabble.com/

Re: 回复:carbondata数据导出

Posted by zeng zhen <z....@gmail.com>.
You can also use presto + carbondata to do this

On Nov 28, 2017 11:56 PM, "xuchuanyin" <xu...@hust.edu.cn> wrote:

> why not use spark DataFrameWriter API ?
>
>
> 发自网易邮箱手机版
>
> 在2017年11月27日 16:23,MickYuan <mi...@qq.com> 写道:
> 请问carbondata可以实现如下的业务需求吗:
> 1.将某个表导出成csv文件。
> 2.将某个sql查询的结果导出成csv文件。
>
> 谢谢!
>
>
>
>
> --
> Sent from: http://apache-carbondata-user-mailing-list.3231.n8.nabble.com/
>
>

Re: 回复:carbondata数据导出

Posted by MickYuan <mi...@qq.com>.
因为我这边只是想用jdbc接口去操作carbondata,不想去写api,我现在已经找到了一个方式:
   创建一个hive表,stored by textfile,然后通过insert into <hive table> select * from
<carbondata table>的sql语句把carbondata表,转换成hive表的warehouse里的csv类文件,这样比较方便吧。。。




--
Sent from: http://apache-carbondata-user-mailing-list.3231.n8.nabble.com/