raminqaf opened a new pull request, #27228:
URL: https://github.com/apache/flink/pull/27228

   ## What is the purpose of the change
   
   This pull request adds end-to-end test coverage for FLIP-551 (Make FRESHNESS 
Optional for Materialized Tables) to verify that `SHOW CREATE MATERIALIZED 
TABLE` correctly displays the enriched/default FRESHNESS value when it is 
omitted in the `CREATE MATERIALIZED TABLE` statement.
   
   The tests ensure that:
   1. When FRESHNESS is omitted with explicit REFRESH_MODE, the default 
FRESHNESS value is applied based on the mode
   2. When FRESHNESS is explicitly specified, it is preserved in the SHOW 
CREATE output
   3. When both FRESHNESS and REFRESH_MODE are omitted, appropriate defaults 
are applied for both
   
   ## Brief change log
   
   - Added `materialized_table.q` test file for SQL Gateway with 3 test 
scenarios validating default FRESHNESS behavior
   - Added `materialized_table.q` test file for SQL Client with 3 test 
scenarios validating default FRESHNESS behavior
   - Tests verify that `SHOW CREATE MATERIALIZED TABLE` displays the correct 
default FRESHNESS values (3 minutes for CONTINUOUS mode, 1 hour for FULL mode)
   - Tests verify that explicitly specified FRESHNESS values are preserved in 
the output
   
   ## Verifying this change
   
   This change added tests and can be verified as follows:
   
   - Added SQL Gateway integration test in 
`flink-table/flink-sql-gateway/src/test/resources/sql/materialized_table.q`
     - Run with: `mvn test -pl flink-table/flink-sql-gateway 
-Dtest=SqlGatewayServiceStatementITCase`
     
   - Added SQL Client integration test in 
`flink-table/flink-sql-client/src/test/resources/sql/materialized_table.q`
     - Run with: `mvn test -pl flink-table/flink-sql-client 
-Dtest=CliClientITCase`
   
   - Both test files cover three scenarios:
     1. CREATE MATERIALIZED TABLE with REFRESH_MODE=CONTINUOUS but no FRESHNESS 
- verifies default of 3 minutes is applied
     2. CREATE MATERIALIZED TABLE with explicit FRESHNESS=10 seconds - verifies 
the explicit value is preserved
     3. CREATE MATERIALIZED TABLE without FRESHNESS or REFRESH_MODE - verifies 
both defaults are applied (CONTINUOUS mode with 3 minutes)
   
   ## Does this pull request potentially affect one of the following parts:
   
   - Dependencies (does it add or upgrade a dependency): no
   - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: no
   - The serializers: no
   - The runtime per-record code paths (performance sensitive): no
   - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
   - The S3 file system connector: no
   
   ## Documentation
   
   - Does this pull request introduce a new feature? no (test coverage only)
   - If yes, how is the feature documented? not applicable


-- 
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]

Reply via email to