songololo edited a comment on issue #84:
URL: https://github.com/apache/incubator-age/issues/84#issuecomment-857497693


   If I build a docker image from the main branch and run the following::
   ```
   SELECT *
   FROM ag_catalog.drop_graph('threeds', True);
   
   SELECT *
   FROM ag_catalog.create_graph('threeds');
   
   SELECT *
   FROM ag_catalog.cypher('threeds', $$
       CREATE (:begin {name : 'John'})-[:edge1 {name: '1'}]->(:middle)-[:edge1 
{name: '2'}]->(:end)
   $$) AS (a ag_catalog.agtype);
   
   SELECT *
   FROM ag_catalog.cypher('threeds', $$
       MATCH (n:begin {name: 'John'})
       WHERE n.name = 'John'
       RETURN n
   $$) as (v ag_catalog.agtype);
   ```
   
   Then I'm encountering:
   ```
   ERROR: operator is not unique: ag_catalog.agtype = ag_catalog.agtype
   Hint: Could not choose a best candidate operator. You might need to add 
explicit type casts.
   ```
   
   This is my Dockerfile:
   ```
   FROM postgis/postgis:11-3.1-alpine
   
   # RUN apk add --no-cache postgresql-dev=11.10-r0
   #                        postgresql-plpython2=11.10-r0 
--repository=http://dl-cdn.alpinelinux.org/alpine/v3.9/main
   RUN apk add --no-cache \
     bison=3.6.2-r0 \
     flex=2.6.4-r2 \
     g++=9.3.0-r2 \
     --repository=http://dl-cdn.alpinelinux.org/alpine/v3.12/main
   RUN apk add --no-cache \
     clang \
     flex \
     git \
     llvm \
     make
   
   RUN git clone --depth 1 https://github.com/apache/incubator-age /age
   
   RUN cd /age && make install
   
   RUN  ln -s /usr/lib/postgresql/plpython2.so 
/usr/local/lib/postgresql/plpython2.so \
     && ln -s /usr/share/postgresql/extension/plpython2u.control 
/usr/local/share/postgresql/extension/plpythonu.control \
     && ln -s /usr/share/postgresql/extension/plpython2u--1.0.sql 
/usr/local/share/postgresql/extension/plpythonu--1.0.sql \
     && ln -s /usr/share/postgresql/extension/plpython2u--unpackaged--1.0.sql 
/usr/local/share/postgresql/extension/plpythonu--unpackaged--1.0.sql
   ```


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to