The creation of the Glue table requires a few additional steps in comparison with creating a table on transparent storage. You can find the common procedure on page Create a Glue Table and during the selection of the Storage ID (Load) you need to follow these steps:
Fill a Storage ID (Load) with a valid File storage ID. You should see the File storage options button. You might need to press enter (after filling storage ID) in order to see this button.
Press the File storage options button. You should see the following popup:
Fill the parameters based on your requirements or leave the default one, if suitable.
Container name – directory where files generated by Glue are stored (obligatory parameter). You can also specify a path to the container by using a slash sign as a separator between the containers.
Delimiter type – character which separates values in generated .csv files. This character can be selected from F4 help (obligatory parameter).
Put values into quotes – option for putting values into the quotes (use when there is a delimiter character present in data).
Use extending escaping (optional) – replaces escape characters, such as newline, backspace, tabulator, etc., by the 'space' character. This can be customized in the table /DVD/RL_EXT_ESC and a default set of values can be filled by transaction /DVD/RL_DEFAULT_ESC.
Include header (optional) – includes a header line at the beginning of the file with data.
One file extraction (optional) – keeps all data in one file (data from one extraction is stored in only one file).
Compress file(optional) – compresses the file into a gzip. This feature cannot be selected if the parameter One file extraction is enabled and vice versa.
Compression level - compression level of the gzip file. Available values can be selected from F4 help. The default value is 5. The parameter will appear only if the Compress file option is checked.
Confirm your selection. Now you can continue with Step 2 of Create a Glue table procedure.
Glue table on File storage explained
On file-based storages, no structures like database tables are created and data is stored within a specific location in .csv files. To keep track of Glue tables created, the .json metadata file is generated at a specific location (defined in Container name) during Glue table activation. A similar metadata file is also transferred in case an alter operation is performed on the Glue table. The naming convention for the Glue table name can be customized via Glue Settings - Binary Storage settings parameter called Binary table metadata file name.
JSON metadata structure
The metadata for each Glue table created on file storage is stored in the JSON file and contains the technical description of the Glue table. This file can be used by an external processing application to process the Glue table correctly.
In the next section, we discuss the JSON metadata structure and the meaning of particular attributes.