Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-35602 [Umbrella] Test Flink Release 1.20
  3. FLINK-35663

Release Testing: FLIP-436: Introduce Catalog-related Syntax

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Blocker
    • Resolution: Unresolved
    • 1.20.0
    • None
    • Table SQL / API
    • None

    Description

      This describes how to verify FLINK-34914 FLIP-436: Introduce Catalog-related Syntax.

      The verification steps are as follows.

      1. Start the sql client.

      bin/sql-client.sh

      2. Execute the following DDL statements.

      create catalog c1 comment 'comment for ''c1''' with ('type'='generic_in_memory', 'default-database'='db1');
      
      create catalog if not exists c1 comment 'new' with ('type'='generic_in_memory'); 
      
      create catalog if not exists c2 with ('type'='generic_in_memory'); 
      
      create catalog c2 with ('type'='generic_in_memory', 'default-database'='db2'); 

      Verify whether only the last statement is supposed to throw an exception and messages such as `Catalog c2 already exists.`

      3. Execute the following statements.

      show catalogs;
      
      show create catalog c1;
      
      describe catalog c1;
      
      desc catalog extended c1;
      
      show create catalog c2;
      
      describe catalog c2;
      
      desc catalog extended c2; 

      Verify whether they are the same as the given results.

      4. Execute the following DDL statements.

      alter catalog c1 reset ('default-database');
      
      alter catalog c1 comment '';
      
      alter catalog c2 set ('default-database'='db2');
      
      alter catalog c2 reset ('type');
      
      alter catalog c2 reset ();
      
      alter catalog c2 comment 'hello catalog ''c2''';

      Verify whether the forth statement is supposed to throw an exception and messages such as `ALTER CATALOG RESET does not support changing 'type'`.

      Verify whether the fifth statement is supposed to throw an exception and messages such as `ALTER CATALOG RESET does not support empty key`.

      5. Execute the following statements.

      show create catalog c1;
      
      describe catalog c1;
      
      desc catalog extended c1;
      
      show create catalog c2;
      
      describe catalog c2;
      
      desc catalog extended c2;  

      Verify whether they are the same as the given results.

      Attachments

        1. image-2024-06-21-09-43-47-391.png
          101 kB
          Yubin Li
        2. image-2024-06-21-09-43-58-460.png
          61 kB
          Yubin Li
        3. image-2024-06-21-09-44-26-213.png
          101 kB
          Yubin Li
        4. image-2024-06-21-09-45-43-807.png
          61 kB
          Yubin Li

        Activity

          People

            Unassigned Unassigned
            liyubin117 Yubin Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: