Amazon Kinesis Data Analytics SQL Reference (original) (raw)
FIXED_COLUMN_LOG_PARSE
Parses fixed-width fields and automatically converts them to the given SQL types.
FIXED_COLUMN_LOG_PARSE ( <string value expression>, <column description string expression> )
<column description string expression> := '<column description> [,...]'
<column description> :=
<identifier> TYPE <data type> [ NOT NULL ]
START <numeric value expression> [FOR <numeric constant expression>]
Starting position of column is 0. Column specifications for types DATE,TIME and TIMESTAMP support a format parameter allowing the user to specify exact time component layout. The parser uses the Java class java.lang.SimpleDateFormat to parse the strings for types DATE, TIME and TIMESTAMP. The Date and Time Patterns topic gives a full description and examples of timestamp format strings. The following is an example of a column definition with a format string:
"name" TYPE TIMESTAMP 'dd/MMM/yyyy:HH:mm:ss'
Related Topics
FAST_REGEX_LOG_PARSER
REGEX_LOG_PARSE
Did this page help you? - Yes
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Did this page help you? - No
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.