Skip to content

Conversation

@MuhammadTahaNaveed
Copy link
Member

  • The '=' operator checks if the original property value(as a whole) is equal to the given value.

    e.g MATCH (n {school:{addr:{city:'Toronto'}}}) tranforms into

    either(in case age.enable_containment is off)
    `properties.school.addr.city = 'Toronto'`
    
    or(in case age.enable_containment is on)
    `properties @> {school:{addr:{city:'Toronto'}}}`
    
    But MATCH (n ={school:{addr:{city:'Toronto'}}}) will tranform into
    
    either(in case age.enable_containment is off)
    `properties.school = {addr:{city:'Toronto'}}`
    
    or(in case age.enable_containment is on)
    `properties @>> {school:{addr:{city:'Toronto'}}}`
    
  • Added @>> and <<@ operators. Unlike @> and <@, these operators does not recurse into sub-objects.

  • Added regression tests.

@github-actions github-actions bot added the PG13 PostgreSQL13 label Feb 10, 2024
- The '=' operator checks if the original property value(as a whole) is
  equal to the given value.

  e.g MATCH (n {school:{addr:{city:'Toronto'}}}) tranforms into

      either(in case age.enable_containment is off)
      `properties.school.addr.city = 'Toronto'`

      or(in case age.enable_containment is on)
      `properties @> {school:{addr:{city:'Toronto'}}}`

      But MATCH (n ={school:{addr:{city:'Toronto'}}}) will tranform into

      either(in case age.enable_containment is off)
      `properties.school = {addr:{city:'Toronto'}}`

      or(in case age.enable_containment is on)
      `properties @>> {school:{addr:{city:'Toronto'}}}`

- Added @>> and <<@ operators. Unlike @> and <@, these operators does
  not recurse into sub-objects.

- Added regression tests.

- Added changes in sql files to version update template file.
@jrgemignani jrgemignani merged commit 171043d into apache:PG13 Feb 12, 2024
@MuhammadTahaNaveed MuhammadTahaNaveed deleted the PG13_issue_1461 branch February 13, 2024 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PG13 PostgreSQL13

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants