Defining Fields - Query NoSQL DB
The Fields tab displays the field and its type as defined in the NoSQL DB/Schema file.
-
On the Fields Tab, click
Regenerate.
This generates the aggregated data based on the first 50 records. The data is displayed in the following format: Fieldname(datatype).Note: If the schema file is browsed, the fields are generated using the schema file. The table/view is bypassed. To reset the schema file, click Clear.
- To modify the name and type of a field, highlight the field, and click Modify.
- In the Name field, choose the field you want to add or type the name of the field.
-
In the Type field, you can leave the data type as string
if you do not intend to perform any mathematical operations with the data.
However, if you intend to perform these kinds of operations, select an
appropriate data type. This will convert the string data from the file to a data
type that will enable the proper manipulation of the data in the dataflow.
The stage supports the following data types:
- double
- A numeric data type that contains both negative and positive double precision numbers between 2-1074 and (2-2-52)×21023. In E notation, the range of values is -1.79769313486232E+308 to 1.79769313486232E+308.
- float
- A numeric data type that contains both negative and positive single precision numbers between 2-149 and (2-223)×2127. In E notation, the range of values -3.402823E+38 to 3.402823E+38.
- integer
- A numeric data type that contains both negative and positive whole numbers between -231 (-2,147,483,648) and 231-1 (2,147,483,647).
- long
- A numeric data type that contains both negative and positive whole numbers between -263 (-9,223,372,036,854,775,808) and 263-1 (9,223,372,036,854,775,807).
- string
- A sequence of characters.
-
You can also add fields that are not present in the table or schema file.
Click Add to add a new field. To remove a field, click
Remove.
Note: You can only add a new field under the List type.
- Click OK.