Skip to content

Databricks: Support CREATE FUNCTION ... RETURNS TABLE ... RETURN <query> - #3073

Open
milenkovicm wants to merge 1 commit into
apache:mainfrom
milenkovicm:feat_create_table_function_sql
Open

milenkovicm wants to merge 1 commit into
apache:mainfrom
milenkovicm:feat_create_table_function_sql

Conversation

@milenkovicm

Copy link
Copy Markdown
Contributor

Add supports for creating table SQL functions

CREATE OR REPLACE FUNCTION getemps(deptno INT)
    RETURNS TABLE (name STRING)
    RETURN SELECT name FROM employee e WHERE e.deptno = getemps.deptno;

Dialects: Generics, Databricks

References:

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.23529% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.61%. Comparing base (3ac3cc3) to head (a812bcc).

Files with missing lines Patch % Lines
src/ast/ddl.rs 66.66% 0 Missing and 1 partial ⚠️
src/parser/mod.rs 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3073   +/-   ##
=======================================
  Coverage   83.60%   83.61%           
=======================================
  Files          42       42           
  Lines       35751    35766   +15     
  Branches    35751    35766   +15     
=======================================
+ Hits        29891    29905   +14     
  Misses       2418     2418           
- Partials     3442     3443    +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants