mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Merge pull request #71004 from ClickHouse/embedded_dictionaries_localisation
Tests for languages support for Embedded Dictionaries
This commit is contained in:
commit
6f8e953bd9
@ -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/
|
||||
|
12
tests/config/regions_names_es.txt
Normal file
12
tests/config/regions_names_es.txt
Normal 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
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user