You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Checkstyle violations in AbstractTestDistributedQueries.java
- Fix left brace placement for testViewWithUUID, testExplainAnalyzeWithCTEMaterialization, and assertExplainAnalyze methods
- Split long lines to comply with 80-character limit
- Add proper Javadoc comments
- Remove trailing whitespace
* Tests view creation and querying with UUID data type.
1648
+
* Verifies that UUID values can be properly stored and retrieved from views.
1649
+
*/
1646
1650
@Test
1647
1651
publicvoidtestViewWithUUID()
1648
1652
{
1649
1653
skipTestUnless(supportsViews());
1650
1654
1651
-
@Language("SQL") Stringquery = "SELECT * FROM (VALUES (CAST(0 AS INTEGER), NULL), (CAST(1 AS INTEGER), UUID '12151fd2-7586-11e9-8f9e-2a86e4085a59')) AS t (rum, c1)";
1655
+
@Language("SQL") Stringquery = "SELECT * FROM (VALUES "
1656
+
+ "(CAST(0 AS INTEGER), NULL), "
1657
+
+ "(CAST(1 AS INTEGER), UUID '12151fd2-7586-11e9-8f9e-2a86e4085a59')) "
1658
+
+ "AS t (rum, c1)";
1652
1659
1653
1660
// Create View with UUID type in Hive
1654
1661
assertQuerySucceeds("CREATE VIEW test_hive_view AS " + query);
@@ -1657,45 +1664,62 @@ public void testViewWithUUID()
1657
1664
MaterializedResultresult = computeActual("SELECT c1 FROM test_hive_view WHERE rum = 1");
1658
1665
1659
1666
// Verify the result set is not empty
1660
-
assertTrue(result.getMaterializedRows().size() > 0, "Result set is empty");
0 commit comments