SQL: Fix fulltext CSV spec tests (elastic/x-pack-elasticsearch#2608)
Column type autodetect of integer types is broken in JDBC CSV library when it is used in tr-TR locale. The library is using toLowerCase() calls with default locale, which causes it to convert autodetected type name "Int" to lowercase "ınt" in tr-TR locale and not recognize it as an int type afterwards. This commit adds a temporary workaround that makes the prevents that test from failing by specifying explicit column types in all tests where integer columns are present. Original commit: elastic/x-pack-elasticsearch@86ca2acd8c
This commit is contained in:
parent
63a5ad0b1d
commit
c31c2af872
|
@ -5,27 +5,27 @@
|
|||
simpleQueryAllFields
|
||||
SELECT emp_no, first_name, gender, last_name FROM test_emp WHERE QUERY('Baek fox') LIMIT 3;
|
||||
|
||||
emp_no | first_name | gender | last_name
|
||||
emp_no:i | first_name:s | gender:s | last_name:s
|
||||
10080 |Premal |M |Baek
|
||||
;
|
||||
|
||||
simpleQueryDedicatedField
|
||||
SELECT emp_no, first_name, gender, last_name FROM test_emp WHERE QUERY('Man*', 'fields=last_name') LIMIT 5;
|
||||
|
||||
emp_no | first_name | gender | last_name
|
||||
emp_no:i | first_name:s | gender:s | last_name:s
|
||||
10096 |Jayson |M |Mandell
|
||||
;
|
||||
|
||||
matchQuery
|
||||
SELECT emp_no, first_name, gender, last_name FROM test_emp WHERE MATCH(first_name, 'Erez');
|
||||
|
||||
emp_no | first_name | gender | last_name
|
||||
emp_no:i | first_name:s | gender:s | last_name:s
|
||||
10076 |Erez |F |Ritzmann
|
||||
;
|
||||
|
||||
multiMatchQuery
|
||||
SELECT emp_no, first_name, gender, last_name FROM test_emp WHERE MATCH('first_name,last_name', 'Morton', 'type=best_fields;default_operator=OR');
|
||||
|
||||
emp_no | first_name | gender | last_name
|
||||
emp_no:i | first_name:s | gender:s | last_name:s
|
||||
10095 |Hilari |M |Morton
|
||||
;
|
||||
|
|
Loading…
Reference in New Issue