Error parsing the script file

29 views
Skip to first unread message

oj

unread,
Jan 20, 2015, 6:27:48 PM1/20/15
to spar...@googlegroups.com
Hi,

I'm trying to import data using the basic script file(saved as script_file.txt):
create gdb FRIENDS into "friends.dbg"

create node PEOPLE 
create attribute PEOPLE.ID ID string unique
create attribute PEOPLE.NAME string indexed
create attribute PEOPLE.AGE  integer basic default 0

load nodes "people.csv"
    columns ID, NAME, *, AGE
    into PEOPLE
    fields terminated ;
    from 1
    log "people.csv.log"

When I run this file using the following command the parser fails.
java -cp sparkseejava.jar com.sparsity.sparksee.script.ScriptParser script_file.txt false

The generated log file(given in the .cfg) does not seem to report an issue.

Am I doing something wrong?

Thanks!


c3po.ac

unread,
Jan 21, 2015, 5:26:07 AM1/21/15
to spar...@googlegroups.com
Hi,

The problem is that the second "ID" in this line should not be there:


create attribute PEOPLE.ID ID string unique

Best regards.


El dimecres, 21 gener de 2015 0:27:48 UTC+1, oj va escriure:

oj

unread,
Jan 21, 2015, 7:12:56 PM1/21/15
to spar...@googlegroups.com
Thanks for your help!
You might also want to fix the code example here http://www.sparsity-technologies.com/UserManual/Scripting.html

Cheers!

sparkseegdb

unread,
Jan 22, 2015, 4:34:23 AM1/22/15
to spar...@googlegroups.com
Thanks oj! We have reported the issue and will be fixed in the next release of the documentation.

Best!

Sparksee team
Reply all
Reply to author
Forward
0 new messages