@@ -440,6 +440,21 @@ def test_properties_get_table_specific_property(catalog: InMemoryCatalog) -> Non
440440 assert result .output == "134217728\n "
441441
442442
443+ def test_properties_get_table_specific_empty_property (catalog : InMemoryCatalog ) -> None :
444+ catalog .create_namespace (TEST_TABLE_NAMESPACE )
445+ catalog .create_table (
446+ identifier = TEST_TABLE_IDENTIFIER ,
447+ schema = TEST_TABLE_SCHEMA ,
448+ partition_spec = TEST_TABLE_PARTITION_SPEC ,
449+ properties = {"empty" : "" },
450+ )
451+
452+ runner = CliRunner ()
453+ result = runner .invoke (run , ["properties" , "get" , "table" , "default.my_table" , "empty" ])
454+ assert result .exit_code == 0
455+ assert result .output == "\n "
456+
457+
443458def test_properties_get_table_specific_property_that_doesnt_exist (catalog : InMemoryCatalog ) -> None :
444459 catalog .create_namespace (TEST_TABLE_NAMESPACE )
445460 catalog .create_table (
@@ -482,6 +497,15 @@ def test_properties_get_namespace_specific_property(catalog: InMemoryCatalog, na
482497 assert result .output == "s3://warehouse/database/location\n "
483498
484499
500+ def test_properties_get_namespace_specific_empty_property (catalog : InMemoryCatalog ) -> None :
501+ catalog .create_namespace (TEST_TABLE_NAMESPACE , {"empty" : "" })
502+
503+ runner = CliRunner ()
504+ result = runner .invoke (run , ["properties" , "get" , "namespace" , "default" , "empty" ])
505+ assert result .exit_code == 0
506+ assert result .output == "\n "
507+
508+
485509def test_properties_get_namespace_does_not_exist (catalog : InMemoryCatalog , namespace_properties : Properties ) -> None :
486510 catalog .create_namespace (TEST_TABLE_NAMESPACE , namespace_properties )
487511
0 commit comments