Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#9269 - Add MSSQL Stored Procedure Support #14739

Merged
merged 9 commits into from
Jan 17, 2024
Merged

Conversation

pmbrull
Copy link
Collaborator

@pmbrull pmbrull commented Jan 16, 2024

Describe your changes:

Fixes #9269

Also:

  • Added supportsQueryComment to MSSQL. Tested it with our instance and it's all good there
  • Cleaned up some unnecessary fields from the Stored Procedures code for snowflake, BQ, redshift and oracle

left a comment in the issue with the SP lineage query we are using. It's not great since I did not find a way to link SP <> Query via session ID or anything similar, so we might end up having some false positives.

Let's see if someone in the community is more versed in MSSQL than I am and can chip in

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

@pmbrull pmbrull requested a review from a team as a code owner January 16, 2024 17:47
@github-actions github-actions bot added Ingestion backend safe to test Add this label to run secure Github workflows on PRs labels Jan 16, 2024
Copy link

Quality Gate Failed Quality Gate failed for 'open-metadata-ingestion'

Failed conditions

13.2% Duplication on New Code (required ≤ 10%)

See analysis details on SonarCloud

Comment on lines +162 to +166

-- Add supportsQueryComment to MSSQL
update dbservice_entity
set json = JSON_SET(json, '$.connection.config.supportsQueryComment', true)
where serviceType = 'Mssql';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pmbrull as supportsQueryComment by default is set to true, if it doesn't find it, it will be set to true, do we need a migration in these cases?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without it the server did not start. I don't think the problem is the value but the server expecting the key there I guess

@pmbrull pmbrull merged commit eadda0e into open-metadata:main Jan 17, 2024
19 of 20 checks passed
@pmbrull pmbrull deleted the mssql-sp branch January 17, 2024 05:37
IceS2 pushed a commit that referenced this pull request Jan 17, 2024
* Remove unnecessary field

* Remove unnecessary field

* Support query comments in MSSQL

* Remove unnecessary field

* Format

* Add external type

* Add MSSQL SP support
Abhishek332 pushed a commit to Abhishek332/OpenMetadata that referenced this pull request Jan 25, 2024
…a#14739)

* Remove unnecessary field

* Remove unnecessary field

* Support query comments in MSSQL

* Remove unnecessary field

* Format

* Add external type

* Add MSSQL SP support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Ingestion safe to test Add this label to run secure Github workflows on PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ingestion of MsSQL procedures to OpenMetaData
3 participants