Merge pull request #71004 from ClickHouse/embedded_dictionaries_localisation

Tests for languages support for Embedded Dictionaries
This commit is contained in:
Alexey Milovidov 2024-10-24 13:40:22 +00:00 committed by GitHub
commit 6f8e953bd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 18 additions and 0 deletions

View File

@ -115,6 +115,7 @@ ln -sf $SRC_PATH/test_function.xml $DEST_SERVER_PATH/
ln -sf $SRC_PATH/top_level_domains $DEST_SERVER_PATH/
ln -sf $SRC_PATH/regions_hierarchy.txt $DEST_SERVER_PATH/config.d/
ln -sf $SRC_PATH/regions_names_en.txt $DEST_SERVER_PATH/config.d/
ln -sf $SRC_PATH/regions_names_es.txt $DEST_SERVER_PATH/config.d/
ln -sf $SRC_PATH/ext-en.txt $DEST_SERVER_PATH/config.d/
ln -sf $SRC_PATH/ext-ru.txt $DEST_SERVER_PATH/config.d/

View File

@ -0,0 +1,12 @@
1 Mundo
2 Estados Unidos
3 Colorado
4 Boulder County
5 Boulder
6 China
7 Sichuan
8 Chengdú
9 América
10 América del Norte
11 Eurasia
12 Asia

View File

@ -284,3 +284,7 @@ Asia is in Asia
[10,9,1] ['North America','America','World']
[11,1] ['Eurasia','World']
[12,11,1] ['Asia','Eurasia','World']
Mundo
Estados Unidos
Colorado

View File

@ -12,3 +12,4 @@ SELECT regionToName(number::UInt32, 'en'), regionToTopContinent(number::UInt32)
SELECT regionToName(number::UInt32, 'en'), regionToPopulation(number::UInt32) AS id, regionToName(id, 'en') FROM numbers(13);
SELECT regionToName(n1.number::UInt32, 'en') || (regionIn(n1.number::UInt32, n2.number::UInt32) ? ' is in ' : ' is not in ') || regionToName(n2.number::UInt32, 'en') FROM numbers(13) AS n1 CROSS JOIN numbers(13) AS n2;
SELECT regionHierarchy(number::UInt32) AS arr, arrayMap(id -> regionToName(id, 'en'), arr) FROM numbers(13);
SELECT regionToName(number::UInt32, 'es') FROM numbers(4);