My Oracle Support Banner

JSON_TABLE query with NESTED PATHs returns wrong results on 19c (Doc ID 2729932.1)

Last updated on NOVEMBER 19, 2020

Applies to:

Oracle Database - Enterprise Edition - Version 19.3.0.0.0 and later
Information in this document applies to any platform.

Symptoms

JSON_TABLE query with NESTED PATHs returns wrong results on 19c:

SQL> SELECT JSONZ*
FROM
    USER_ME.TABLE_A SRC,
    JSON_TABLE("JSONinfo",'$'
    COLUMNS (TYPE VARCHAR2(4000) PATH '$."$"'
      , ID VARCHAR2(4000) PATH '$.Id'
      , NESTED PATH '$.MyArray[*]' COLUMNS (
          MYARRAY VARCHAR2(4000) PATH '$."$"'
        )
      , NESTED PATH '$.AnotherArray[*]' COLUMNS (
         AnotherArray VARCHAR2(4000) PATH '$."$"'
       )
      , NESTED PATH '$.OneMoreArray[*]' COLUMNS (
        RATE NUMBER PATH '$.Rate'
       )
       , MYID NUMBER PATH '$.MyId'
       )
   )) AS JSONZ;

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.