LAT Reference
LAT Data Types in Loading
data pipelines are now the preferred method for loading data into the ocient system for details, see docid\ zncvnrhsf6fg1yvqk6mxt after extracting from source files or topics, data can be transformed and mapped to target columns in {{ocient}} tables lat automatically binds many primitive source data types to ocient column data types and automatically converts some source types to the target column type different source data types automatically bind to target columns using different conventions for example, a string in json such as '123' that loads into an int column properly binds to the corresponding integer value 123 similarly, an integer like 456 can automatically bind to an int column as 456 , a float column as 456 0 , and a varchar column as '456' finally, a string including well known text (wkt) representation of a point automatically binds into an st point column empty string handling when you attempt to load an empty string into a target column with lat, most data types raise an error and the record does not load into the target table the exceptions are varchar , decimal , binary , and array column types in those cases, the data warehouse loads these values varchar an empty string decimal 0 0 (with the appropriate precision) binary an empty binary blob array an empty array when you extract data from text based formats like delimited data, the data warehouse loads empty data as an empty string unless you use the empty as null setting null handling if you do not provide a value for a column in the target table, this table explains what value the data warehouse stores in the column for the purposes of default value handling, these are equivalent pipeline is missing a column pipeline includes a column but the value in the json or the source data evaluates to null pipeline includes a column but the field is missing on the source record (e g , a b does not exist in a json record) to transform a null or missing value into a default in the pipeline, use the transformation functions for example not null(a b, 'my default') 186,440 trueleft unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type data type binding refer to the docid\ czxgepf3prq9ufwhwbiuy for detailed information about each data type these tables describe the automatic binding conventions of each data type bigint 126,460 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type binary 183,425 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type boolean 188,405 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type date 137,440 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type decimal 114,451 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type double , double precision 221,350 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type hash 166,415 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type int 126,465 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type ipv4 200,387 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type ip 100,452 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type linestring , st linestring 159,428 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type matrix 131,443 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type point , st point 210,393 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type polygon , st polygon ensure that polygons are oriented in your intended way when you load them as polygon orientation matters in ocient semantics if you intend all polygons to be oriented counter clockwise, use the docid\ ekn3kd8le8nvgcgsdl1w0 transform function to enforce counter clockwise semantics 152,428 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type real , float , single precision 158,435 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type smallint 125,462 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type time 128,475 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type timestamp 125,446 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type tinyint , byte 125,456 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type tuple 112,438 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type type\[] 119,481 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type uuid 198,456 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type varchar , char 205,420 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type load geospatial data geospatial data can be loaded from a variety of formats into ocient the ocient system requires special considerations when you load geospatial data into ocient including coordinate system supported geospatial loading formats geospatial type conversion point normalization polygon normalization coordinate system ocient uses spatial reference system id (srid) 4326 for all internal geospatial data types srid 4326 is defined in the https //csrc nist gov/glossary/term/world geodetic system 1984 before you load the source data, all data should have the srid 4326 data type the loading operation ignores any source data that contains the coordinate system srid information supported geospatial loading formats well known text the primary data format for loading geospatial data in ocient is the well known text (wkt) format this string format is a portable format that can represent points, lines, and polygons string data in wkt format can automatically load into point , linestring , and polygon ocient column types in addition, arrays of strings in wkt format can automatically load into array columns of a suitable geospatial data type the ocient system assumes raw strings are in wkt format when the system loads these strings into geospatial column types each linestring or polygon value can be up to a maximum of 512 mb in size this means a linestring or polygon can contain approximately 32 million point values wkt strings are whitespace insensitive, so point(10 20) is equivalent to point (10 20) wkt strings are case insensitive extended well known text (ewkt) is not supported to load ewkt data, load the substring after the ewkt semicolon as the wkt format well known binary and extended well known binary the other data formats that can load into ocient are well known binary (wkb) and extended well known binary (ewkb) formats the ocient system requires an explicit transformation function for both wkb and ewkb formats when you load data and convert it into the target column type you can use the function st geomfromewkb to transform wkb and ewkb data in both cases, the ocient system represents the wkb or ewkb string data as hexadecimal string data the hexadecimal string can be one of these formats only hexadecimal digits 000000000140000000000000004010000000000000 prefixed with 0x 0x000000000140000000000000004010000000000000 prefixed with \x \x000000000140000000000000004010000000000000 geometry conversion ocient provides the automatic conversion of geometries from simpler types to more complex types the conversion allows the load of a linestring column with a point, or a polygon column with a point or linestring this capability also allows the load of arrays of polygon data from the source arrays of a combination of point, linestring, and polygon data, which represents a geometry collection point normalization during loading, ocient automatically performs normalization of point data into a regular format used within ocient the ocient system performs the following operations on point data during the load constrain longitude to \[ 180, 180) and latitude to \[ 90, 90]; wrap around invalid coordinates using correct geographical handling snap points near the pole to the pole set longitude of points on the pole to 0 remove signed zeros from coordinates, so 0 becomes 0 polygon normalization ocient follows a counterclockwise rotation convention to indicate the outer ring of a polygon the inner ring follows a clockwise rotation if the ocient system loads a polygon with a clockwise outer ring, the system indicates that the polygon is outside of the given ring in some cases, the polygon load can lead to unexpected results when the source data follows a different polygon rotation convention to account for this, the lat provides the st forcepolygonccw function that forces a counterclockwise rotation of the outer polygon ring and a clockwise rotation of the inner polygon ring when applicable geospatial transformation functions the lat has a select set of transformation functions to construct geospatial types and manipulate them during the load you can find the supported geospatial transformation functions in docid\ ekn3kd8le8nvgcgsdl1w0 related links docid\ zjlpeecj74 lp0ciflqh0 docid\ fzgei8xsenxt5igxzypm8 docid\ rknitvxzxbrb2w5jfjryo