I've compiled the development branch of Alenka (commit 0a097f1) on Ubuntu 16.04 64-bit with CUDA 8 and I'm running it with an Nvidia GTX 1080 and the 367.48 driver. I'm unable to query a table I've created with Alenka. Below are the steps to re-create the issue. Any guidance on where I'm going wrong would be greatly appreciated.
I created a new folder and have three files in it, load.sql, data.tbl and query.sql.
$ cd ~/nation
This is the SQL load file:
$ cat load.sql
A := LOAD 'data.tbl' USING ('|') AS (n_nationkey{1}:int, n_name{2}:varchar(25), n_regionkey{3}:int);
STORE A INTO 'country' BINARY;
This is the data it'll be loading. I added pipes to the end of each line because if I didn't, Alenka would get stuck in a loop.
I then ran the load command. I did get two warnings but no errors.
$ ~/Alenka/src/alenka load.sql
GeForce GTX 1080 : 1835.000 Mhz (Ordinal 0)
20 SMs enabled. Compute Capability sm_61
FreeMem: 6943MB TotalMem: 8110MB 64-bit pointers.
Mem Clock: 5005.000 Mhz x 256 bits (320.3 GB/s)
ECC Disabled
- 2016-10-16 13:31:52.568 INFO: Executing File..
- 2016-10-16 13:31:52.568 WARNING: Couldn't open data dictionary
- 2016-10-16 13:31:52.568 WARNING: Error, no valid column names have been found
- 2016-10-16 13:31:53.006 INFO: Execute Complete!
I could then see a number of new files in the folder. I ran hexdump over them and, although I'm not familiar with your file formats, they did look to contain data.
$ ls -alh
total 56K
drwxrwxr-x 2 mark mark 4,0K okt 16 13:32 .
drwxr-xr-x 32 mark mark 4,0K okt 16 12:39 ..
-rw-rw-r-- 1 mark mark 107 okt 16 13:31 alenka.dictonary
-rw-rw-r-- 1 mark mark 175 okt 16 13:31 country.n_name
-rw-rw-r-- 1 mark mark 60 okt 16 13:31 country.n_name.0.hash
-rw-rw-r-- 1 mark mark 63 okt 16 13:31 country.n_name.0.idx
-rw-rw-r-- 1 mark mark 20 okt 16 13:31 country.n_name.header
-rw-rw-r-- 1 mark mark 63 okt 16 13:31 country.n_nationkey.0
-rw-rw-r-- 1 mark mark 20 okt 16 13:31 country.n_nationkey.header
-rw-rw-r-- 1 mark mark 63 okt 16 13:31 country.n_regionkey.0
-rw-rw-r-- 1 mark mark 20 okt 16 13:31 country.n_regionkey.header
-rw-rw-r-- 1 mark mark 89 okt 16 13:31 data.tbl
-rw-rw-r-- 1 mark mark 134 okt 16 13:31 load.sql
-rw-rw-r-- 1 mark mark 74 okt 16 13:32 query.sql
Here are the last few lines of that command run via strace. I looks to open country.n_name.header fine but cannot find country.sort nor country.presort. It then looks to execute the query and then throws the error.
I've compiled the development branch of Alenka (commit 0a097f1) on Ubuntu 16.04 64-bit with CUDA 8 and I'm running it with an Nvidia GTX 1080 and the 367.48 driver. I'm unable to query a table I've created with Alenka. Below are the steps to re-create the issue. Any guidance on where I'm going wrong would be greatly appreciated.
I created a new folder and have three files in it,
load.sql
,data.tbl
andquery.sql
.This is the SQL load file:
This is the data it'll be loading. I added pipes to the end of each line because if I didn't, Alenka would get stuck in a loop.
I then ran the load command. I did get two warnings but no errors.
I could then see a number of new files in the folder. I ran
hexdump
over them and, although I'm not familiar with your file formats, they did look to contain data.I then ran the following query.
I end up getting a
(Fatal) Couldn't find(1) country
error message:Here are the last few lines of that command run via strace. I looks to open
country.n_name.header
fine but cannot findcountry.sort
norcountry.presort
. It then looks to execute the query and then throws the error.Again, any help in fixing this issue would be greatly appreciated.
Kind Regards, Mark