Git Product home page Git Product logo

Comments (12)

jexp avatar jexp commented on June 6, 2024

Can you share the generated file?

Alberto it would be good if we covered all the data types and input modes in IT.
Perhaps we can have one generic IT that is parameterized with both databases and input modes?
And only checks on the resulting graph?

from neo4j-etl.

davidlrosenblum avatar davidlrosenblum commented on June 6, 2024

I have attached all the files I could think of
etl err1.zip

from neo4j-etl.

jaroslav-jaros avatar jaroslav-jaros commented on June 6, 2024

I have the same problem with latest version- neo4j-etl-cli-1.2.0-RC1.

from neo4j-etl.

albertodelazzari avatar albertodelazzari commented on June 6, 2024

Do you have this problem with the latest release?

from neo4j-etl.

jexp avatar jexp commented on June 6, 2024

@davidlrosenblum ping?

from neo4j-etl.

davidlrosenblum avatar davidlrosenblum commented on June 6, 2024

from neo4j-etl.

davidlrosenblum avatar davidlrosenblum commented on June 6, 2024

I can confirm this is fixed in ETL 1.2.1

from neo4j-etl.

grubytolman avatar grubytolman commented on June 6, 2024

I got similar problem in etl 1.2.1:

./bin/neo4j-etl export --rdbms:url jdbc:postgresql://myurl:5432/public --rdbms:schema example --rdbms:user my_user --rdbms:password pass --destination /var/lib/neo4j/data/databases/graph.db/ --import-tool /usr/share/neo4j/bin --csv-directory /var/lib/neo4j/import --force

and getting:
Peak memory usage: 0.00 B', Stderr: 'WARNING: neo4j-import is deprecated and support for it will be removed in a future
version of Neo4j; please use neo4j-admin import instead.
Error in input data
Caused by:ERROR in input
data source: BufferedCharSeeker[source:/var/lib/neo4j/import/csv-003/example/NODE_xxxxxxxxxx.xxxx_1703350c-43dc-48ad-a059-4a5d36d4e5f8.csv, position:225, line:0]
in field: success:byte:10
for header: [:ID(xxxxxxxxxx.xxxx), installedRank:long, installedBy:string, description:string, script:string, installedOn:string, executionTime:long, version:string, checksum:long, success:byte, type:string, :LABEL]
raw field value: true
original error: Not an integer: "true"

success column is boolean in postgresql

from neo4j-etl.

jexp avatar jexp commented on June 6, 2024

@grubytolman can you share the table definition for that column?

Which Postgres version are you using?

from neo4j-etl.

grubytolman avatar grubytolman commented on June 6, 2024

PostgreSQL 9.4.15 on x86_64-unknown-linux-gnu 64-bit

CREATE TABLE xxx.xxx
(
installed_rank integer NOT NULL,
version character varying(50),
description character varying(200) NOT NULL,
type character varying(20) NOT NULL,
script character varying(1000) NOT NULL,
checksum integer,
installed_by character varying(100) NOT NULL,
installed_on timestamp without time zone NOT NULL DEFAULT "now"(),
execution_time integer NOT NULL,
success boolean NOT NULL,
CONSTRAINT xxx_pk PRIMARY KEY ("installed_rank")
)

CREATE INDEX xxx_xxx_s_idx
ON xxx.xxx
USING btree
("success");

values in column success are true, false in postgresql

Neo4j Server version: 3.4.7 (community)

I've also made simple test base/table on different pc:
Ubuntu 16.04
PostgreSQL 9.5.14 on x86_64-pc-linux-gnu
neo4j community 3.4.6
neo4j-etl 1.2.1

CREATE TABLE testbool
(
id integer NOT NULL,
"boolColumn" boolean DEFAULT true,
CONSTRAINT prim_key PRIMARY KEY (id)
);

insert into testbool values (1,true);
insert into testBool values (2,false);
insert into testBool values (3,true);
insert into testBool values (4,false);

etl exec:
./bin/neo4j-etl export --rdbms:url jdbc:postgresql://localhost:5432/northwind --rdbms:schema testbool --rdbms:user xxx --rdbms:password xxx --destination /var/lib/neo4j/data/databases/graph.db/ --import-tool /usr/share/neo4j/bin --csv-directory /var/lib/neo4j/import --force

and getting:
Data statistics is not available.
Peak memory usage: 0.00 B', Stderr: 'WARNING: neo4j-import is deprecated and support for it will be removed in a future
version of Neo4j; please use neo4j-admin import instead.
Error in input data
Caused by:ERROR in input
data source: BufferedCharSeeker[source:/var/lib/neo4j/import/csv-009/neo4import/NODE_neo4import.testbool_21686a3f-4981-4bef-847e-1ac14a5e6dbd.csv, position:15, line:0]
in field: boolColumn:byte:3
for header: [:ID(neo4import.testbool), id:long, boolColumn:byte, :LABEL]
raw field value: true
original error: Not an integer: "true"

from neo4j-etl.

ltw18 avatar ltw18 commented on June 6, 2024

hi , did you solve it?
I got similar problem.

from neo4j-etl.

grubytolman avatar grubytolman commented on June 6, 2024

Kind of, I changed "true" to 1 and "false" to 0 in csv files with external script and then imported without problem.
For bigger tables I wrote custom exporter and importer.

from neo4j-etl.

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.