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

The description of procedures is not transferred from mssql #19552

Open
feride-sh opened this issue Jan 28, 2025 · 0 comments
Open

The description of procedures is not transferred from mssql #19552

feride-sh opened this issue Jan 28, 2025 · 0 comments
Assignees

Comments

@feride-sh
Copy link

feride-sh commented Jan 28, 2025

Affected module
backend

Describe the bug
The procedure description is not pulled up, since the script has a filter for tables and views

MSSQL_GET_TABLE_COMMENTS = textwrap.dedent(
    """
SELECT obj.name AS table_name,
        ep.value AS table_comment,
        s.name AS "schema"
FROM sys.objects AS obj
LEFT JOIN sys.extended_properties AS ep
    ON obj.object_id = ep.major_id AND ep.minor_id = 0 AND ep.name = 'MS_Description'
JOIN sys.schemas AS s
    ON obj.schema_id = s.schema_id
WHERE
    obj.type IN ('U', 'V') /* User tables and views */ -- HERE. Only this code use 'sys.extended_properties'. Procedures is type 'P'
"""
)

Expected behavior
The description of the procedures is transferred and updated from mssql to omd

Version:

  • OpenMetadata version: 1.6.2
@ulixius9 ulixius9 self-assigned this Jan 28, 2025
@ulixius9 ulixius9 moved this to Integration in Release 1.7.0 Jan 28, 2025
@ulixius9 ulixius9 added this to the Feb 25 - Sprint 2 milestone Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Integration
Development

No branches or pull requests

2 participants