sdk2 commented on code in PR #69404:
URL: https://github.com/apache/doris/pull/69404#discussion_r4812279687
##########
regression-test/suites/external_table_p0/hive/write/test_hive_write_static_partition.groovy:
##########
@@ -123,6 +123,28 @@ suite("test_hive_write_static_partition",
"p0,external,hive,external_docker,exte
assertEquals("tagG", p28ow[0][0]); assertEquals(700, p28ow[0][1])
assertEquals("2026-07-28", p28ow[0][2])
+ // 9. A numeric literal can render as "1E+3" in FE planning and "1000"
on the BE row. The
+ // provider must keep the full listing so an existing p=1000
partition is overwritten,
+ // not classified NEW and appended.
+ sql """
+ INSERT INTO ${tableName} PARTITION(ts_date='1000')
+ SELECT 'tagH', 'u8', 800;
+ """
+ sql """ set debug_skip_fold_constant = true; """
+ try {
+ sql """
+ INSERT OVERWRITE TABLE ${tableName} PARTITION(ts_date=1e3)
+ SELECT 'tagI', 'u9', 900;
+ """
+ } finally {
+ sql """ set debug_skip_fold_constant = false; """
+ }
+ sql """ refresh catalog ${catalog_name}; """
+ def p1000 = sql """ select tag_value, ts, ts_date from ${tableName}
where ts_date='1000'; """
Review Comment:
This suite currently uses inline assertions and has no .out file. I kept
that style and added ORDER BY; the case asserts exactly one row (`tagI`, 900,
`1000`), so it fails if the overwrite retains `tagH`. Would it be acceptable to
keep the inline assertions for this case?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]