-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Error while compiling statement: FAILED: ParseException line 3:2 mismatched input 'mapInfo' expecting ) near 'STRING' in create table statement
Below you can see that the statement has a few issues.
- Missing commas
- Displaying NULLs. Maybe we could have NULLs set as STRING through an option
- INTEGER instead of INT
- NUMBER instead of INT
`CREATE TABLE test(
macAddress STRING
mapInfo STRUCT<
mapHierarchyDetails: STRUCT<
campus: NULL,
building: NULL,
floor: NULL,
floorAesUid: INTEGER,
zones: NULL
>
mapCoordinate STRUCT<
x: NUMBER,
y: NUMBER,
z: NUMBER,
unit: STRING
currentlyTracked BOOLEAN
confidenceFactor NUMBER
locComputeType STRING
statistics STRUCT<
currentServerTime: STRING,
firstLocatedTime: STRING,
lastLocatedTime: STRING
historyLogReason NULL
geoCoordinate NULL
rawLocation NULL
networkStatus STRING
changedOn INTEGER
ipAddress ARRAY
userName STRING
ssId STRING
sourceTimestamp STRING
band STRING
apMacAddress STRING
dot11Status STRING
manufacturer STRING
areaGlobalIdList NULL
detectingControllers STRING
bytesSent INTEGER
bytesReceived INTEGER
guestUser BOOLEAN
)
ROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe';`