You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by GitBox <gi...@apache.org> on 2022/04/24 15:15:43 UTC

[GitHub] [incubator-age] lnoir opened a new issue, #208: Importing data from CSV

lnoir opened a new issue, #208:
URL: https://github.com/apache/incubator-age/issues/208

   I'm trying to import an existing graph. The documentation [here](https://age.apache.org/docs/master/intro/agload.html) states that the function `load_labels_from_file` can be used to create vertices from CSV files containing relevant data. However, when I run:
   ```
   SELECT create_vlabel('testgraph','Country');
   SELECT load_labels_from_file('testgraph', 'Country', 'age_load/data/countries.csv');
   ```
   
   I receive the following error:
   ```
   function load_labels_from_file(unknown, unknown, unknown) does not exist
   ```
   The same applies for `load_edges_from_file`. What am I doing wrong? If the above should work, is the function not available in the version I'm using? I'm currently using the [sorrell/apache-age](https://hub.docker.com/r/sorrell/apache-age) docker image.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-age] lnoir commented on issue #208: Importing data from CSV

Posted by GitBox <gi...@apache.org>.
lnoir commented on issue #208:
URL: https://github.com/apache/incubator-age/issues/208#issuecomment-1107895561

   Hi @JoshInnis , yes, both of those are run prior to attempting to run `load_[x]_from_file`. I don't receive any errors when using `create_vlabel` or `create_elabel`. I'm also able to run cypher queries without issue. It just seems to be the loading functions that are a problem.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-age] emotionbug commented on issue #208: Importing data from CSV

Posted by GitBox <gi...@apache.org>.
emotionbug commented on issue #208:
URL: https://github.com/apache/incubator-age/issues/208#issuecomment-1107917485

   I think that function was added on v1.0


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-age] JoshInnis commented on issue #208: Importing data from CSV

Posted by GitBox <gi...@apache.org>.
JoshInnis commented on issue #208:
URL: https://github.com/apache/incubator-age/issues/208#issuecomment-1107918811

   @emotionbug is correct, that function was added in a release that is newer than that docker image, please use this docker image instead https://hub.docker.com/r/apache/age


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-age] lnoir commented on issue #208: Importing data from CSV

Posted by GitBox <gi...@apache.org>.
lnoir commented on issue #208:
URL: https://github.com/apache/incubator-age/issues/208#issuecomment-1108129381

   @emotionbug @JoshInnis Thank you. I've pulled the image and the functions work.
   
   The [README](https://github.com/apache/incubator-age/blob/master/README.md) needs to be updated as it still references the [sorrell/agensgraph-extension](https://hub.docker.com/r/sorrell/agensgraph-extension) which in turn only references [sorrell/apache-age](https://hub.docker.com/r/sorrell/apache-age). It wasn't clear that [apache/age](https://hub.docker.com/r/apache/age) existed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-age] JoshInnis commented on issue #208: Importing data from CSV

Posted by GitBox <gi...@apache.org>.
JoshInnis commented on issue #208:
URL: https://github.com/apache/incubator-age/issues/208#issuecomment-1107885695

   Hi @lnoir,
   
   Are executing `LOAD 'age';` and `SET search_path = ag_catalog, "$user", public;` before calling load_labels_from_file?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-age] lnoir closed issue #208: Importing data from CSV

Posted by GitBox <gi...@apache.org>.
lnoir closed issue #208: Importing data from CSV
URL: https://github.com/apache/incubator-age/issues/208


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org