Getting startedSlide 5 of 86
5//Getting started
Comments
A comment runs from // to the end of the line. Hive has no block comment; only inside a query body, which is SQL rather than Hive, are SQL's own -- and /* */ recognised.
A source file is UTF-8, and its line endings may be \n or \r\n. A byte-order mark at the start of a file is refused: save it as "UTF-8", not "UTF-8 with BOM".
proc main(): void {
// A comment. The whole line, and nothing of the next.
x := 1 // ...or the tail of one.
echo x
}You can edit this program and run it here.Tab indents, Escape leaves the program, and Ctrl+Enter runs it.
Output
Run a program to see what it prints here.