Current csv loader will cause an "incorrect format" if there is no empty line
at the end of the csv file. I tried the following query:
==================>
drop dataverse temp if exists;
create dataverse temp
use dataverse temp;
create type test as closed {
id: int32,
integer: int32,
float: float,
double: double,
date: string,
time: string
};
create dataset testds (test)
primary key id;
load dataset testds using localfs
(("path"="127.0.0.1:///Users/jarodwen/Downloads/test.csv"),
("format"="delimited-text"),("delimiter"=","));
for $i in dataset testds
return $i
<==================
This query will fail for this csv file:
=======================>
1,2,3.4,5.6789,2013-08-07,07:22:35
<=======================
But it will work for this csv file (notice the empty line):
=======================>
1,2,3.4,5.6789,2013-08-07,07:22:35
<=======================
Original issue reported on code.google.com by jarod...@gmail.com on 7 Aug 2013 at 2:37
Original issue reported on code.google.com by
jarod...@gmail.com
on 7 Aug 2013 at 2:37