Abstract: As we all know, data development and analysis students spend a lot of time writing MaxCompute SQL every day; Dataworks, as the IDE for data development, directly affects everyone's development efficiency. We have done a lot of work on the editing experience of the newly launched Dataworks this time. Implement AST parsing of extended syntaxes such as MaxCompute SQL and editor parameters on the front end, and achieve better and smarter generation
As we all know, data development and analysis students spend a lot of time writing MaxCompute SQL every day; Dataworks, as the IDE for data development, directly affects everyone's development efficiency. We have done a lot of work on the editing experience of the newly launched Dataworks this time. Realize AST parsing of extended syntax such as MaxCompute SQL and editor parameters, and realize better and smarter code prompts and faster responses, helping you improve development efficiency;
First show a few beautiful pictures:
How does it look? Does it look like a local editor, so cool~
Next, we introduce these new features one by one.
1. Real-time prompts for MaxCompute SQL syntax errors (accurate to rows and columns)
Real-time syntax check, at the same time, supports MaxCompute 2.0 syntax, and the error position can be accurate to row and column.
2. Display specific error messages in the editor
Quickly locate problems, support syntax analysis, and prompt detailed error messages for users.
3. Auto-completion (keyword/project/table/field)
Appears keywords, projects, tables and fields in appropriate places; 'from', 'xxx join', 'drop table/view', 'alter table / view' prompt tables; 'select', 'where', 'having' , 'on', 'order by', 'partitioned by', 'distibute by', 'sort by', 'desc' prompts the fields of the related table; supports sub-query method field prompts.
4. Syntax highlighting in multiple languages
The new version of the editor supports the syntax highlighting of SQL and Shell, and identifies the key of a programming language in color.
5. Shortcut support
Through shortcut keys, we can easily edit the code, such as saving and undoing actions.
Save - Ctrl+S / Cmd+S
Undo - Ctrl+Z / Cmd+Z
Redo - Ctrl+Y / Cmd+Y
Find - Ctrl+F / Cmd+F
Replace - Ctrl+Shift+F / Cmd+Alt+F
Delete a line - Ctrl+Shift+K / Cmd+Shift+K
Same word selection - Ctrl+D / Cmd+D
Block Comments - Ctrl+/ / Cmd+/
6. Code folding
When writing a large amount of code, it is often impossible to quickly and accurately find which code is a functional module and which code is a pair of tag blocks because of too much code. At this time, the code indentation and folding function is very important; click the - sign, Complete code folding.
7. Smart editor Lenovo speed improvement
The new version of the editor not only supports 2.0, but also increases the speed of Lenovo by 40%, making it faster and more accurate.
8. Code retrieval supports more ways
The new version supports more flexible query methods such as case and regular expressions. Users can open the code retrieval function through Ctrl+F.