dark2momo commented on issue #3688:
URL: https://github.com/apache/paimon/issues/3688#issuecomment-2705927224

   @melin I tested your case in class `org.apache.paimon.spark.SparkReadITCase` 
of branch master, and the issue cannot be reproduced.
   ```java
       @Test
       public void testCreateTableAsTmp() {
           spark.sql("CREATE TABLE paimon_order_pt_tag (\n" +
                   "    id INT,\n" +
                   "    name string,\n" +
                   "    pt string\n" +
                   ") USING paimon\n" +
                   "PARTITIONED BY (pt)\n" +
                   "tblproperties (\n" +
                   "    'primary-key' = 'id, pt',\n" +
                   "    'bucket'= '-1'\n" +
                   ");");
           spark.sql("insert OVERWRITE paimon_order_pt_tag 
PARTITION(pt='20240701') select 3 as id, 'zhangsan' as name;");
           spark.sql("CALL sys.create_tag(table => 'paimon_order_pt_tag', tag 
=> 'tag-20240701');");
           spark.sql("show table extended like 'paimon_order_pt_tag' PARTITION 
(pt='20240701');").show();
           /* output:
           +---------+-------------------+-----------+--------------------+
           |namespace|          tableName|isTemporary|         information|
           +---------+-------------------+-----------+--------------------+
           |  default|paimon_order_pt_tag|      false|Partition Values:...|
           +---------+-------------------+-----------+--------------------+
           * */
       }
   ```
   Maybe you can try newer version.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@paimon.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to