To make it easier for developers to write MaxCompute SQL, DataWorks has enhanced the SQL editor function

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:

139beebb2d10071046cb3e3ff2362023fe5f543c

b98da158bda0f6f2280486cb2654bce548443804

How does it look? Does it look like a local editor, so cool~

Next, we introduce these new features one by one.

4a9ff1dc772f2199dbf65e5650f420eb0ddada2a

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.

bdaec57bbc9d7321d55ae8f7af835e475179c970

2. Display specific error messages in the editor

Quickly locate problems, support syntax analysis, and prompt detailed error messages for users.

c8cd17f326d1ffc2778d9b0b69c12e15fd3779df

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.

12a02b9807e246fe5135b49491f89aed6dd3bfdc

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.

faee662c589ba15a89b7398d1aae70a93bc10585

 

72ee64db8211c7cec778c15269eb712eefebe30f

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.

3624672b5ae28d9c0f5a113252b5535d6be6b73b

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.

b98da158bda0f6f2280486cb2654bce548443804

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.

a3e5aed6dc29248d0866728709726c302666f7e8

Original link

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325253245&siteId=291194637