@@ -564,17 +564,20 @@ public void testWriterWithMaterialize() throws Exception {
564
564
" attrs Nullable(String), " +
565
565
" corrected_time DateTime('UTC') DEFAULT now()," +
566
566
" special_attr Nullable(Int8) DEFAULT -1," +
567
- " name_lower String MATERIALIZED lower(name)" +
567
+ " name_lower String MATERIALIZED lower(name)," +
568
+ " name_lower_alias String ALIAS lower(name)," +
569
+ " unhexed String EPHEMERAL," +
570
+ " hexed FixedString(4) DEFAULT unhex(unhexed)" +
568
571
" ) Engine = MergeTree ORDER by (name)" ;
569
572
570
573
initTable (tableName , tableCreate );
571
574
572
575
ZonedDateTime correctedTime = Instant .now ().atZone (ZoneId .of ("UTC" ));
573
576
Object [][] rows = new Object [][] {
574
- {"foo1" , 0.3f , 0.6f , "a=1,b=2,c=5" , correctedTime , 10 },
575
- {"foo2" , 0.6f , 0.1f , "a=1,b=2,c=5" , correctedTime , null },
576
- {"foo3" , 0.7f , 0.4f , "a=1,b=2,c=5" , null , null },
577
- {"foo4" , 0.8f , 0.5f , null , null , null },
577
+ {"foo1" , 0.3f , 0.6f , "a=1,b=2,c=5" , correctedTime , 10 , "Z��" },
578
+ {"foo2" , 0.6f , 0.1f , "a=1,b=2,c=5" , correctedTime , null , "Z��" },
579
+ {"foo3" , 0.7f , 0.4f , "a=1,b=2,c=5" , null , null , "Z��" },
580
+ {"foo4" , 0.8f , 0.5f , null , null , null , "Z��" },
578
581
};
579
582
580
583
TableSchema schema = client .getTableSchema (tableName );
0 commit comments