GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Setting all properties with map object causes error · Issue #1634 · apache/age

Setting all properties with map object causes error #1634

New issue
Copy link
New issue
Copy link
Closed
Closed
Setting all properties with map object causes error#1634
Copy link
Labels
bugSomething isn't working

Description

@mingfang
mingfang
opened on Mar 2, 2024
Issue body actions

Setting all properties using map object does not work.
But works with map literal and individual map keys.

-- ERROR:  properties() argument must resolve to a scalar value
SELECT * FROM cypher('playground', $$
    WITH {first: 'jon', last: 'snow'} AS map
    MERGE (v:PERSON {id: '1'})
    SET v=map
    RETURN v,map
$$) as (v agtype, map agtype);
-- works with map keys
SELECT * FROM cypher('playground', $$
    WITH {first: 'jon', last: 'snow'} AS map
    MERGE (v:PERSON {id: '1'})
    SET v.first=map.first, v.last=map.last
    RETURN v,map
$$) as (v agtype, map agtype);

-- works with map literal
SELECT * FROM cypher('playground', $$
    MERGE (v:PERSON {id: '1'})
    SET v={first: 'jon', last: 'snow'}
    RETURN v
$$) as (v agtype);

Activity

  1. mingfang
    added
    bugSomething isn't working
    on Mar 2, 2024
  2. jrgemignani commented on Mar 4, 2024

    @jrgemignani
    jrgemignani
    on Mar 4, 2024
    Contributor
    More actions

    @mingfang Will look into this.

    Reacted by Ming Fang
  3. jrgemignani commented on Mar 5, 2024

    @jrgemignani
    jrgemignani
    on Mar 5, 2024
    Contributor
    More actions

    @mingfang PR #1637 created to fix this in the master branch.

    Reacted by Ming Fang
  4. mingfang commented on Mar 5, 2024

    @mingfang
    mingfang
    on Mar 5, 2024
    Author
    More actions

    wow that was fast. thanks!

  5. jrgemignani commented on Mar 6, 2024

    @jrgemignani
    jrgemignani
    on Mar 6, 2024
    Contributor
    More actions

    @mingfang The PR was approved and applied to the master branch. This should be resolved. Please verify, at your convenience, and consider closing the ticket if this is resolved :)

  6. mingfang commented on Mar 7, 2024

    @mingfang
    mingfang
    on Mar 7, 2024
    Author
    More actions

    confirmed fixed

    Reacted by John Gemignani
  7. mingfang
    closed this as completedon Mar 7, 2024
  8. mingfang commented on Mar 7, 2024

    @mingfang
    mingfang
    on Mar 7, 2024
    Author
    More actions

    @jrgemignani thank you!

    Reacted by John Gemignani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.