@@ -79,9 +79,8 @@ Most services described in this document require user database and table names.
7979 This prefix is reserved for naming internal tables that Qserv places into user databases.
8080
8181Depending on the version of the Qserv AOI, there are additional restrictions on the names of databases and tables.
82- Before version number **46 ** of the API, database and table names could only container alphanumeric characters and underscores.
83- This restriction was imposed to avoid issues with the MySQL server. This restriction was relaxed in version **46 ** of the API
84- to allow the following special characters:
82+ Before version number **46 ** of the API, database and table names could only contain alphanumeric characters and underscores.
83+ This restriction is relaxed as of version **46 ** of the API to allow the following special characters:
8584
8685 - (white space)
8786 - ``- `` (hyphen)
@@ -140,6 +139,8 @@ to specify the operation to be performed. The object follows this schema:
140139 { "database" : <string>,
141140 "table" : <string>,
142141 "binary_encoding" : <string>,
142+ "charset_name" : <string>,
143+ "collation_name" : <string>,
143144 "timeout" : <number>,
144145 "schema" : <array>,
145146 "indexes" : <array>,
@@ -159,6 +160,13 @@ Where:
159160
160161 - :ref: `ingest-general-binary-encoding ` (REST)
161162
163+ ``charset_name `` : *part * = ``latin1 ``
164+ The optional parameter that affects the interpretation of the data in the CSV file when ingesting the contribution.
165+ The name will be used for setting the ``CHARSET `` attribute of the relevant MySQL tables created by the service.
166+
167+ ``collation_name `` : *part * = ``latin1_swedish_ci ``
168+ The optional parameter is used for setting the ``COLLATE `` attribute of the relevant MySQL tables created by the service.
169+
162170``schema `` : *array *
163171 The required schema definition. The schema must be a JSON array, where each entry represents a column specification.
164172 More information on the schema specification requirements can be found in the dedicated section of the document:
@@ -328,11 +336,11 @@ and files:
328336 The default value assumes the newline character.
329337
330338``charset_name `` : *part * = ``latin1 ``
331- The optional parameters specify the desired character set name to be assumed when ingesting
332- the contribution. The default value may be also affected by the ingest services configuration.
333- See the following document for more details:
339+ The optional parameter that affects the interpretation of the data in the CSV file when ingesting the contribution.
340+ The name will be also used for setting the ``CHARSET `` attribute of the relevant MySQL tables created by the service.
334341
335- - :ref: `ingest-api-advanced-charset ` (ADVANCED)
342+ ``collation_name `` : *part * = ``latin1_swedish_ci ``
343+ The optional parameter is used for setting the ``COLLATE `` attribute of the relevant MySQL tables created by the service.
336344
337345``timeout `` : *part * = ``300 ``
338346 The optional timeout (in seconds) that limits the duration of the internal operations initiated by the service.
@@ -398,6 +406,8 @@ The request could be pushed to the service using:
398406 -F ' table=employee' \
399407 -F ' fields_terminated_by=,' \
400408 -F ' timeout=300' \
409+ -F ' charset_name=utf8mb4' \
410+ -F ' collation_name=utf8mb4_uca1400_ai_ci' \
401411 -F ' schema=@/path/to/schema.json' \
402412 -F ' indexes=@/path/to/indexes.json' \
403413 -F ' rows=@/path/to/employee.csv'
0 commit comments