Skip to content

eBay/Flink-SQL-Extension

Flink SQL Extension for Visual Studio Code

This toolkit helps you edit and develop your SQL efficiently. It provides a simplified experience on developing Flink SQL through intelligent editing features and a smooth integration with user's Flink cluster.

Overview

Feature Overview

1. Intelligent Editor

  • Syntax highlighting
  • Autocomplete
  • Documentation for built-in functions

2. SQL Snippets

  • Categorize by SQL type and connector
  • Provide required parameters for "CREATE TABLE" statements
  • Press tab to jump to target inputs

3. Integration with Local Flink cluster

  • Connect with your local Flink cluster
  • Submit file / selected SQL to configured cluster
  • Real-time submission feedback in output console
  • Flink SQL CLI lifecycle management

4. Embedded Monitoring

  • Flink Monitoring Platform
  • Refresh the page to get the latest job status

5. Linking to Flink SQL Monitoring

  • List Flink jobs and show their status
  • List task managers
  • Provide external links to Flink Web UI

Supported Flink Environment

Currently, the following list of Flink environment are supported:

  1. Local Flink Clusters
  • Flink clusters that lives in your local environment
  • Start the SQL client with the following: ./bin/sql-client.sh

Please specify the path to your Flink cluster in settings of this extension.

How to Install

1. Install from the VS Code Extension Marketplace

We will be publishing the extension in VS Code Market Place. More information about installation will be provided in this section once the extension is published.

For now, you can build and run the extension locally by pulling a copy of this repository to your local environment. More instructions in the following section.

2. Build and Run Locally

You can run the extension locally by following the steps below:

  • Download Visual Studio Code
  • Have a copy of this github repository in your local
  • Open the project with VS Code. Click on "Run Extension" in the "Run" explorer panel in VS Code to run the extension. Running Extension

How to use

After you have downloaded this extension, follow the below steps to set up and start coding.

1. Configure your Flink cluster

Before directly submit Flink SQL from our editor, please go to settings to configure the following three fields:

  • Flink Dashboard URL
  • Flink Package Path
  • Command to start Flink SQL Client

2. Create a new .flinksql file

The extension provides syntax highlight for files with .flinksql extensions. Naming the files ending in .flinksql would give you full access to the functionalities of the extension.

3. Start developing!

Contributing to the project

Please refer to the following guide for our contributing guideline: CONTRIBUTING.md

Instructions for developing and testing the extension is documented in this quickstart guide in this repository.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published