* refactor: rename flinksql to flink * refactor: rename pgsql to postgresql * refactor: rename trinosql to trino * refactor: replace all default exports with named export * refactor: rename basicParser to basicSQL * refactor: rename basic-parser-types to types * refactor: replace arrow func with plain func
		
			
				
	
	
		
			27 lines
		
	
	
		
			482 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			482 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
| -- LOAD/UNLOAD
 | |
| LOAD MODULE CORE;
 | |
| 
 | |
| LOAD MODULE dummy WITH ('k1' = 'v1', 'k2' = 'v2');
 | |
| 
 | |
| UNLOAD MODULE CORE;
 | |
| 
 | |
| --SET/RESET
 | |
| SET;
 | |
| 
 | |
| SET 'test-key' = 'test-value';
 | |
| 
 | |
| RESET;
 | |
| 
 | |
| RESET 'test-key';
 | |
| 
 | |
| -- ADD/REMOVE JAR
 | |
| ADD JAR '<path_to_filename>.jar'
 | |
| 
 | |
| REMOVE JAR '<path_to_filename>.jar'
 | |
| 
 | |
| -- Complex Arithmetic Expression
 | |
| INSERT INTO avg_request_size_5m SELECT
 | |
|     window_start,
 | |
|     window_end,
 | |
|     (server_logs_window_5m.a/server_logs_window_5m.b+c)/d*e%f-g AS avg_size
 | |
| FROM server_logs_window_5m; |