GithubHelp home page GithubHelp logo

Problems with loading data about alenka HOT 3 CLOSED

antonmks avatar antonmks commented on September 2, 2024
Problems with loading data

from alenka.

Comments (3)

antonmks avatar antonmks commented on September 2, 2024

Hello !
Sorry for the bugs, the last few days I was working on fixing the problem .
I will post the update on a github today, let me know if it works for you.
Oh, I probably should add to the manual that you always need to have a
COUNT(field) in a group by statement. So try it like this :
D := SELECT sccode AS sccode1, product AS product1, SUM(sale) AS sale_sum,
COUNT(product) AS cnt
FROM A GROUP BY area, product;

If it doesn't work let me know and I will try to reproduce the problem.

Regards,

Anton

On Sun, Jan 27, 2013 at 8:08 PM, bmanola [email protected] wrote:

Dear Anton,

First i want to say this is remarkable project. Analyzing large dataset
using GPUs is great idea.

I have a problem with correct select statement.
I load file (around 30M rows) into BINARY structure.
When load this binary structure and make basic SQL
D := SELECT sccode AS sccode1, product AS product1, SUM(sale) AS sale_sum
FROM A GROUP BY area, product;
I get less rows then same sql but on database.76K instead of 500k.Some
products are missing which i for sure have in bigtable in DB.

More strange is when i user FILTER product <= 100000 (this number is not
important max product code is 40000) i get around 160K

Can you tell whats wrong with my sql statement?

For loading data i use
A := LOAD 'bigtable.csv' USING (',') AS (uniqueid{1}:int,
ccode{2}:varchar(10), acode{3}:varchar(10), sccode{4}:varchar(10),
supplier{5}:int, product{6}:int, sale{15}:decimal);
STORE A INTO 'bigtable' BINARY;

Best Regards,


Reply to this email directly or view it on GitHubhttps://github.com//issues/3.

from alenka.

bmanola avatar bmanola commented on September 2, 2024

Hi, Anton,

I am sending you output if that might help

Process count = 6200000
BINARY LOAD: A bigtable
SELECT D A
cycle 0 select mem 851771392
final select 81233
select time 3.22
STORE: D mytest.txt |
SQL scan parse worked
cycle time 3.534

I noticed that process makes only one cycle instead of 4(or 5).

Sql for selecting is same as you suggested.

Regards,

from alenka.

antonmks avatar antonmks commented on September 2, 2024

I think I fixed it now. Sorry for the bug, just not enough testing on my part !
I have generated 30 million records and the query takes exactly 2 seconds on my GTX 580.

from alenka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.