ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Muhammed Favas <favas.muham...@expeedsoftware.com>
Subject RE: Write python dataframe to ignite table.
Date Wed, 30 Oct 2019 11:58:43 GMT
Hi Ilya,

Thanks for the response!!

My requirement to have the flexibility to map the csv column to specific table column.
The file I may be getting will have more columns and I want to import some specific set of
columns to my table. I assume that flexibility is not available currently in COPY command.

Right now I have achieved it through spark dataframe for mapping the column and bulk insert
into ignite. It is moreover giving nearly same performance as ignite COPY command.


From: Ilya Kasnacheev <ilya.kasnacheev@gmail.com>
Sent: Tuesday, October 29, 2019 8:46 PM
To: user@ignite.apache.org
Subject: Re: Write python dataframe to ignite table.


Well, COPY command does allow you to do column mapping:

COPY FROM '/path/to/local/file.csv'

INTO tablename (columnName, columnName, ...) FORMAT CSV

If you need to do non-trivial transformations, you can use JDBC driver in SET STREAMING ON

Ilya Kasnacheev

вт, 29 окт. 2019 г. в 13:11, Muhammed Favas <favas.muhammed@expeedsoftware.com<mailto:favas.muhammed@expeedsoftware.com>>:

I have tried simple python program without using spark. First I read whole csv into python
dataframe using pandas library.
Now I want to bulk insert the whole dataframe into ignite table without looping through.

The purpose of this test is to evaluate the best way(means faster wat) to bulk load csv files
into ignite.

Ignite COPY command I can not use here, because I need an option to do column mapping while
import csv files.


From: Stephen Darlington <stephen.darlington@gridgain.com<mailto:stephen.darlington@gridgain.com>>
Sent: Monday, October 28, 2019 5:05 PM
To: user@ignite.apache.org<mailto:user@ignite.apache.org>
Subject: Re: Write python dataframe to ignite table.

What have you tried? As long as your command-line includes the right JAR files it seems to
more-or-less just work for me:



On 22 Oct 2019, at 11:41, Muhammed Favas <favas.muhammed@expeedsoftware.com<mailto:favas.muhammed@expeedsoftware.com>>


Is there a way to bulk load python dataframe values to ignite table?


View raw message