Uploaded image for project: 'Tajo (Retired)'
  1. Tajo (Retired)
  2. TAJO-1528 Implement JSON Functions
  3. TAJO-1754

Implement several functions to handle json array

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.11.0
    • Function/UDF
    • None

    Description

      json_array_get

      SELECT json_array_get('["a", "b", "c"]', 0); => "a"
      SELECT json_array_get('["a", "b", "c"]', 1); => "b"
      SELECT json_array_get('["c", "b", "a"]', -1); => "a"
      SELECT json_array_get('["c", "b", "a"]', -2); => "b"
      SELECT json_array_get('[]', 0); => null
      SELECT json_array_get('["a", "b", "c"]', 10); => null
      SELECT json_array_get('["c", "b", "a"]', -10); => null
      

      json_array_contains

      SELECT json_array_contains('[1, 2, 3]', 2);
      

      json_array_length

      SELECT json_array_length('[1, 2, 3]');
      

      Attachments

        Activity

          People

            jihoonson Jihoon Son
            jihoonson Jihoon Son
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: