{"id":13569409,"url":"https://github.com/linkedin/coral","last_synced_at":"2026-04-23T06:05:18.828Z","repository":{"id":37790158,"uuid":"236570369","full_name":"linkedin/coral","owner":"linkedin","description":"Coral is a translation, analysis, and query rewrite engine for SQL and other relational languages.","archived":false,"fork":false,"pushed_at":"2026-01-14T21:14:00.000Z","size":6982,"stargazers_count":883,"open_issues_count":101,"forks_count":204,"subscribers_count":25,"default_branch":"master","last_synced_at":"2026-01-25T12:02:57.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linkedin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-01-27T19:07:47.000Z","updated_at":"2026-01-20T15:20:36.000Z","dependencies_parsed_at":"2023-10-12T00:48:10.898Z","dependency_job_id":"48aa674d-af8b-41e9-8b57-3fe5de7e53a1","html_url":"https://github.com/linkedin/coral","commit_stats":null,"previous_names":[],"tags_count":366,"template":false,"template_full_name":null,"purl":"pkg:github/linkedin/coral","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkedin%2Fcoral","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkedin%2Fcoral/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkedin%2Fcoral/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkedin%2Fcoral/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linkedin","download_url":"https://codeload.github.com/linkedin/coral/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkedin%2Fcoral/sbom","scorecard":{"id":215545,"data":{"date":"2025-08-11","repo":{"name":"github.com/linkedin/coral","commit":"9f8dfce736e3b14aded7653cb340c75bf51dab7b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/linkedin/coral/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/linkedin/coral/ci.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 2-Clause \"Simplified\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/ci.yml:19"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"27 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2019-217 / GHSA-462w-v97r-4m45","Warn: Project is vulnerable to: PYSEC-2014-8 / GHSA-8r7q-cvjq-x353","Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: PYSEC-2014-82 / GHSA-fqh9-2qgg-h84h","Warn: Project is vulnerable to: PYSEC-2021-66 / GHSA-g3rq-g295-4j3m","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: PYSEC-2019-220 / GHSA-hj2j-77xm-mc5v","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h","Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-c59h-r6p8-q9wc","Warn: Project is vulnerable to: GHSA-fq54-2j52-jc42","Warn: Project is vulnerable to: GHSA-77r5-gw3j-2mpf","Warn: Project is vulnerable to: GHSA-7m27-7ghc-44w9","Warn: Project is vulnerable to: GHSA-f82v-jwr5-mffw","Warn: Project is vulnerable to: GHSA-fr5h-rqp8-mj6g","Warn: Project is vulnerable to: GHSA-g77x-44xx-532m","Warn: Project is vulnerable to: GHSA-7gfc-8cq8-jh5f","Warn: Project is vulnerable to: GHSA-qpjv-v59x-3qc4","Warn: Project is vulnerable to: GHSA-3h52-269p-cp9r","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-m95q-7qp3-xv42"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T01:35:39.070Z","repository_id":37790158,"created_at":"2025-08-17T01:35:39.070Z","updated_at":"2025-08-17T01:35:39.070Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30104221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T01:06:53.091Z","status":"ssl_error","status_checked_at":"2026-03-05T01:02:35.679Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T14:00:39.637Z","updated_at":"2026-03-05T01:11:57.174Z","avatar_url":"https://github.com/linkedin.png","language":"Java","funding_links":[],"categories":["Java","大数据","others","\u003ca name=\"Java\"\u003e\u003c/a\u003eJava"],"sub_categories":[],"readme":"# Coral\n\n[![CI](https://github.com/linkedin/coral/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/linkedin/coral/actions/workflows/ci.yml)\n[![release](https://img.shields.io/github/v/release/linkedin/coral?include_prereleases)](https://github.com/linkedin/coral/releases)\n\n\u003cp align=\"center\"\u003e\n \u003cimg src=\"docs/coral-logo.jpg\" width=\"400\" title=\"Coral Logo\"\u003e\n\u003c/p\u003e\n\n**Coral** is a SQL translation, analysis, and rewrite engine. It establishes a standard intermediate representation, \nCoral IR, which captures the semantics of relational algebraic expressions independently of any SQL dialect. Coral IR\nis defined in two forms: one is the at the abstract syntax tree (AST) layer, and the other is at the logical plan layer.\nBoth forms are isomorphic and convertible to each other.\n\nCoral exposes APIs for implementing conversions between SQL dialects and Coral IR in both directions.\nCurrently, Coral supports converting HiveQL and Spark SQL to Coral IR, and converting Coral IR to HiveQL, Spark SQL,\nand Trino SQL. With multiple SQL dialects supported, Coral can be used to translate SQL statements and views defined in\none dialect to equivalent ones in another dialect. It can also be used to interoperate between engines and SQL-powered \ndata sources. For dialect conversion examples, see the modules [coral-hive](coral-hive), [coral-spark](coral-spark), \nand [coral-trino](coral-trino).\n\nCoral also exposes APIs for Coral IR rewrite and manipulation. This includes rewriting Coral IR expressions to produce\nsemantically equivalent, but more performant expressions. For example, Coral automates\nincremental view maintenance by rewriting a view definition to an incremental one. See the module [coral-incremental](coral-incremental)\nfor more details. Other Coral rewrite applications include data governance and policy enforcement.\n\nCoral can be used as a library in other projects, or as a service. See instructions below for more details.\n\n## \u003cimg src=\"https://user-images.githubusercontent.com/10084105/141652009-eeacfab4-0e7b-4320-9379-6c3f8641fcf1.png\" width=\"30\" title=\"Slack Logo\"\u003e Slack\n\n- Join the discussion with the community on Slack [here](https://join.slack.com/t/coral-sql/shared_invite/zt-s8te92up-qU5PSG~spK33ovPPL5v96A)!\n\n## Modules\n\n**Coral** consists of following modules:\n\n- Coral-Hive: Converts HiveQL to Coral IR (can be typically used with Spark SQL as well).\n- Coral-Trino: Converts Coral IR to Trino SQL. Converting Trino SQL to Coral IR is WIP.\n- Coral-Spark: Converts Coral IR to Spark SQL (can be typically used with HiveQL as well).\n- Coral-Dbt: Integrates Coral with DBT. It enables applying Coral transformations on DBT models.\n- Coral-Incremental: Derives an incremental query from input SQL for incremental view maintenance.\n- Coral-Schema: Derives Avro schema of view using view logical plan and input Avro schemas of base tables.\n- Coral-Spark-Plan [WIP]: Converts Spark plan strings to equivalent logical plan.\n- Coral-Visualization: Visualizes Coral SqlNode and RelNode trees and renders them to an output file.\n- Coral-Service: Service that exposes REST APIs that allow users to interact with Coral (see [Coral-as-a-Service](#Coral-as-a-Service) for more details).\n\n## Version Upgrades\n\nThis project adheres to semantic versioning, where the format x.y.z represents major, minor, and patch version upgrades. Consideration should be given to potential changes required when integrating different versions of this project.\n\n**Major version Upgrade**\n\nA major version upgrade represents a version change that introduces backward incompatibility by removal or renaming of classes.\n\n**Minor version Upgrade**\n\nA minor version upgrade represents a version change that introduces backward incompatibility by removal or renaming of methods.\n\nPlease carefully review the release notes and documentation accompanying each version upgrade to understand the specific changes and the recommended steps for migration.\n\n\n## How to Build\n\nClone the repository:\n\n```bash\ngit clone https://github.com/linkedin/coral.git\n```\n\nBuild:\n\n**Please note that this project requires Python 3 and Java 8 to run.** Set `JAVA_HOME` to the home of an appropriate version and then use:\n\n```bash\n./gradlew clean build\n```\nor, set the `org.gradle.java.home` gradle property to the Java home of an appropriate version as below:\n```bash\n./gradlew -Dorg.gradle.java.home=/path/to/java/home clean build\n```\n\n## Contributing\n\nThe project is under active development and we welcome contributions of different forms.\nPlease see the [Contribution Agreement](CONTRIBUTING.md).\n\n## Resources\n\n- [Coral: A SQL translation, analysis, and rewrite engine for modern data lakehouses](https://engineering.linkedin.com/blog/2020/coral), LinkedIn Engineering Blog, 12/10/2020.\n- [Incremental View Maintenance with Coral, DBT, and Iceberg](https://www.slideshare.net/walaa_eldin_moustafa/incremental-view-maintenance-with-coral-dbt-and-iceberg), Tech Talk, Iceberg Meetup, 5/11/2023.\n- [Coral \u0026 Transport UDFs: Building Blocks of a Postmodern Data Warehouse](https://www.slideshare.net/walaa_eldin_moustafa/coral-transport-udfs-building-blocks-of-a-postmodern-data-warehouse-229545076), Tech-talk, Facebook HQ, 2/28/2020.\n- [Transport: Towards Logical Independence Using Translatable Portable UDFs](https://engineering.linkedin.com/blog/2018/11/using-translatable-portable-UDFs), LinkedIn Engineering Blog, 11/14/2018.\n- [Dali Views: Functions as a Service for Big Data](https://engineering.linkedin.com/blog/2017/11/dali-views--functions-as-a-service-for-big-data), LinkedIn Engineering Blog, 11/9/2017.\n\n\n## Coral-as-a-Service\n\n**Coral-as-a-Service** or simply, **Coral Service** is a service that exposes REST APIs that allow users to interact with Coral without necessarily coming from a compute engine. Currently, the service supports an API for query translation between different dialects and another for interacting with a local Hive Metastore to create example databases, tables, and views so they can be referenced in the translation API. The service can be used in two modes: remote Hive Metastore mode, and local Hive Metastore mode. The remote mode uses an existing (already deployed) Hive Metastore to resolve tables and views, while the local one creates an empty embedded Hive Metastore so users can add their own table and view definitions.\n\n### API Reference\n\n#### /api/translations/translate\nA **POST** API which takes JSON request body containing following parameters and returns the translated query:\n- `sourceLanguage`: Input dialect (e.g., spark, trino, hive -- see below for supported inputs)\n- `targetLanguage`: Output dialect (e.g., spark, trino, hive -- see below for supported outputs)\n- `query`: SQL query to translate between two dialects\n- [Optional] `rewriteType`: Type of Coral IR rewrite (e.g, incremental)\n\n#### /api/catalog-ops/execute\nA **POST** API which takes a SQL statement to create a database/table/view in the local metastore\n(note: this endpoint is only available with Coral Service in local metastore mode).\n\n### Instructions to use with examples\n1. Clone [Coral repo](https://github.com/linkedin/coral)\n```bash  \ngit clone https://github.com/linkedin/coral.git  \n```\n2. From the root directory of Coral, access the coral-service module\n```bash  \ncd coral-service  \n```\n3. Build\n```bash  \n../gradlew clean build  \n```\n#### To run Coral Service using the **local metastore**:\n4. Run\n```bash  \n../gradlew bootRun --args='--spring.profiles.active=localMetastore'  \n```\n\n#### To run Coral Service using the **remote metastore**:\n4. Add your kerberos client keytab file to `coral-service/src/main/resources`\n5. Appropriately replace all instances of `SET_ME` in `coral-service/src/main/resources/hive.properties`\n6. Run\n```  \n../gradlew bootRun  \n```\nYou can also specify a custom location of `hive.properties` file through `--hivePropsLocation` as follows\n```\n ./gradlew bootRun --args='--hivePropsLocation=/tmp/hive.properties'\n```\nThen you can interact with the service using your [browser](#coral-service-ui) or the [CLI](#coral-service-cli).\n\n### Coral Service UI\nAfter running `../gradlew bootRun --args='--spring.profiles.active=localMetastore'` (for local metastore mode) \nor `../gradlew bootRun` (for remote metastore mode) from coral-service module, configure and start the UI. \n\nPlease note: The backend service runs on port 8080 (by default) and the web UI runs on port 3000 (by default). \n\n#### To configure environment variables:\n1. Create a `.env.local` file in the frontend project's root directory\n2. Copy over the template from `.env.local.example` into the new `.env.local` file\n3. Fill in the environment variable values in `.env.local`\n\n#### Install the required packages in the frontend directory:\n\n```bash\nnpm install\n```\n\n#### Now you can start the Coral Service UI by running:\n```bash  \nnpm run dev\n```\nOnce compiled, the UI can be accessed from the browser at http://localhost:3000.\n\u003cp align=\"center\"\u003e\n \u003cimg src=\"docs/coral-service-ui/start.png\" title=\"Coral Service UI\"\u003e\n\u003c/p\u003e\nThe UI provides 3 features:\n\n#### Create a database/table/view in local metastore mode\nThis feature is only available with Coral Service in local metastore mode, it calls `/api/catalog-ops/execute` API above.\n\nYou can enter a SQL statement to create a database/table/view in the local metastore.\n\u003cp align=\"center\"\u003e\n \u003cimg src=\"docs/coral-service-ui/creation.png\" title=\"Coral Service Creation Feature\"\u003e\n\u003c/p\u003e\n\n#### Translate SQL from source language to target language (with rewrites)\nThis feature is available with Coral Service in both local and remote metastore modes, it calls `/api/translations/translate` API above.\n\nYou can enter a SQL query and specify the source and target language to use Coral translation service. You can also \nspecify the rewrite type to apply on the input query.\n\u003cp align=\"center\"\u003e\n \u003cimg src=\"docs/coral-service-ui/translation.png\" title=\"Coral Service Translation Feature\"\u003e\n\u003c/p\u003e\n\n#### Generate graphviz visualizations of Coral intermediate representations\nDuring translation, graphs of the Coral intermediate representations\nwill also be generated and shown on screen. This will also include any post-rewrite nodes.\n\u003cp align=\"center\"\u003e\n \u003cimg src=\"docs/coral-service-ui/graphs.png\" title=\"Coral Service Translation Feature\"\u003e\n\u003c/p\u003e\n\n#### Developing on the frontend code\n\n#### To lint/format your code:\n```bash  \nnpm run lint:fix\nnpm run format\n```\n### Coral Service CLI\nApart from the UI above, you can also interact with the service using the CLI.\n\nExample workflow for local metastore mode:\n\n1. Create a database called `db1` in local metastore using the `/api/catalog-ops/execute` endpoint\n\n```bash\ncurl --header \"Content-Type: application/json\" \\\n  --request POST \\\n  --data \"CREATE DATABASE IF NOT EXISTS db1\" \\\n  http://localhost:8080/api/catalog-ops/execute\n\nCreation successful\n```\n2. Create a table called `airport` within `db1` in local metastore using the `/api/catalog-ops/execute` endpoint\n\n```bash\ncurl --header \"Content-Type: application/json\" \\\n  --request POST \\\n  --data \"CREATE TABLE IF NOT EXISTS db1.airport(name string, country string, area_code int, code string, datepartition string)\" \\\n  http://localhost:8080/api/catalog-ops/execute\n\nCreation successful\n```\n\n3. Translate a query on `db1.airport` in local metastore using the `/api/translations/translate` endpoint\n\n```bash\ncurl --header \"Content-Type: application/json\" \\\n  --request POST \\\n  --data '{\n    \"sourceLanguage\":\"hive\", \n    \"targetLanguage\":\"trino\", \n    \"query\":\"SELECT * FROM db1.airport\"\n  }' \\\n  http://localhost:8080/api/translations/translate\n```\nThe translation result is:\n```\nOriginal query in HiveQL:\nSELECT * FROM db1.airport\nTranslated to Trino SQL:\nSELECT \"name\", \"country\", \"area_code\", \"code\", \"datepartition\"\nFROM \"db1\".\"airport\"\n```\n\n\n### Currently Supported Translation Flows\n1. Hive to Trino\n2. Hive to Spark\n3. Trino to Spark  \n   Note: During Trino to Spark translations, views referenced in queries are considered to be defined in HiveQL and hence cannot be used when translating a view from Trino. Currently, only referencing base tables is supported in Trino queries. This translation path is currently a POC and may need further improvements.\n4. Spark to Trino\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkedin%2Fcoral","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinkedin%2Fcoral","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkedin%2Fcoral/lists"}