Skip to content

Commit 343d7d6

Browse files
committed
add spaces
1 parent 1baa927 commit 343d7d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Storages/ObjectStorage/DataLakes/Iceberg/IcebergMetadata.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,12 +678,12 @@ String composeList(
678678
if (field->has("direction"))
679679
{
680680
auto d = field->getValue<String>("direction");
681-
expr += (Poco::icompare(d, "desc") == 0) ? "DESC" : "ASC";
681+
expr += (Poco::icompare(d, "desc") == 0) ? " DESC" : " ASC";
682682
}
683683
if (field->has("null-order"))
684684
{
685685
auto n = field->getValue<String>("null-order");
686-
expr += (Poco::icompare(n, "nulls-last") == 0) ? "NULLS LAST" : "NULLS FIRST";
686+
expr += (Poco::icompare(n, "nulls-last") == 0) ? " NULLS LAST" : " NULLS FIRST";
687687
}
688688
}
689689

tests/integration/test_storage_iceberg/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3453,7 +3453,7 @@ def test_system_tables_partition_sorting_keys(started_cluster, storage_type):
34533453
WHERE name = '{table_name}' FORMAT csv
34543454
""").strip().lower()
34553455

3456-
assert res == '"bucket(16, id), day(ts)","iddescnulls last, hour(ts)ascnulls first"'
3456+
assert res == '"bucket(16, id), day(ts)","id desc nulls last, hour(ts) asc nulls first"'
34573457

34583458
@pytest.mark.parametrize("storage_type", ["local", "s3"])
34593459
def test_compressed_metadata(started_cluster, storage_type):

0 commit comments

Comments
 (0)