@@ -39,6 +39,8 @@ pub enum Feature {
3939 StorageEncryption ,
4040 #[ serde( alias = "stream" , alias = "STREAM" ) ]
4141 Stream ,
42+ #[ serde( alias = "table_ref" , alias = "TABLE_REF" ) ]
43+ TableRef ,
4244 #[ serde( alias = "attach_table" , alias = "ATTACH_TABLE" ) ]
4345 AttacheTable ,
4446 #[ serde( alias = "amend_table" , alias = "AMEND_TABLE" ) ]
@@ -80,6 +82,7 @@ impl fmt::Display for Feature {
8082 Feature :: ComputedColumn => write ! ( f, "computed_column" ) ,
8183 Feature :: StorageEncryption => write ! ( f, "storage_encryption" ) ,
8284 Feature :: Stream => write ! ( f, "stream" ) ,
85+ Feature :: TableRef => write ! ( f, "table_ref" ) ,
8386 Feature :: AttacheTable => write ! ( f, "attach_table" ) ,
8487 Feature :: AmendTable => write ! ( f, "amend_table" ) ,
8588 Feature :: SystemManagement => write ! ( f, "system_management" ) ,
@@ -118,6 +121,7 @@ impl Feature {
118121 | ( Feature :: Vacuum , Feature :: Vacuum )
119122 | ( Feature :: LicenseInfo , Feature :: LicenseInfo )
120123 | ( Feature :: Stream , Feature :: Stream )
124+ | ( Feature :: TableRef , Feature :: TableRef )
121125 | ( Feature :: DataMask , Feature :: DataMask )
122126 | ( Feature :: RowAccessPolicy , Feature :: RowAccessPolicy )
123127 | ( Feature :: VirtualColumn , Feature :: VirtualColumn )
@@ -226,6 +230,10 @@ mod tests {
226230 Feature :: Stream ,
227231 serde_json:: from_str:: <Feature >( "\" Stream\" " ) . unwrap( )
228232 ) ;
233+ assert_eq ! (
234+ Feature :: TableRef ,
235+ serde_json:: from_str:: <Feature >( "\" TableRef\" " ) . unwrap( )
236+ ) ;
229237 assert_eq ! (
230238 Feature :: AttacheTable ,
231239 serde_json:: from_str:: <Feature >( "\" ATTACH_TABLE\" " ) . unwrap( )
@@ -287,6 +295,7 @@ mod tests {
287295 Feature :: ComputedColumn ,
288296 Feature :: StorageEncryption ,
289297 Feature :: Stream ,
298+ Feature :: TableRef ,
290299 Feature :: AttacheTable ,
291300 Feature :: AmendTable ,
292301 Feature :: HilbertClustering ,
@@ -298,7 +307,7 @@ mod tests {
298307 } ;
299308
300309 assert_eq ! (
301- "LicenseInfo{ type: enterprise, org: databend, tenants: [databend_tenant,foo], features: [amend_table,attach_table,computed_column,data_mask,hilbert_clustering,license_info,private_task,row_access_policy,storage_encryption,stream,system_history,vacuum,virtual_column,workload_group] }" ,
310+ "LicenseInfo{ type: enterprise, org: databend, tenants: [databend_tenant,foo], features: [amend_table,attach_table,computed_column,data_mask,hilbert_clustering,license_info,private_task,row_access_policy,storage_encryption,stream,system_history,table_ref, vacuum,virtual_column,workload_group] }" ,
302311 license_info. to_string( )
303312 ) ;
304313 }
0 commit comments