-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Error with MySQL profile ingestion #13974
Comments
From the support channel
|
Maria DB engine appear to compile to OpenMetadata/ingestion/src/metadata/profiler/orm/functions/median.py Lines 140 to 163 in 71ee9ed
Maria DB seems to natively handle median computation we can look into it and handle the execution similar to what we did for single store |
Hi, i would like to work on this issue. |
Affected module
after connecting the mysql data and after running the metadata ingestion, profiler ingestion is getting failed with the below error
Describe the bug
Hi team, in the latest instance i am getting below error when running the mysql profile ingestion
AS
thirdQuartile
FROM
aveva-sales-db
.Owners
LIMIT %(param_1)s]
[parameters: {'param_1': 1}]
(Background on this error at: https://sqlalche.me/e/14/f405)
[2023-11-14T09:35:34.131+0000] {profiler_interface.py:404} ERROR - Owners.Owner metric_type.value: local variable 'row' referenced before assignment
[2023-11-14T09:35:34.132+0000] {status.py:65} WARNING - Owners.Owner metric_type.value: local variable 'row' referenced before assignment
[2023-11-14T09:35:39.907+0000] {profiler_interface.py:520} WARNING - Unexpected exception computing metrics: list index out of range
[2023-11-14T09:35:44.718+0000] {workflow_output_handler.py:361} INFO - Source: Processed 158 records, filtered 0 records, found 0 errors
[2023-11-14T09:35:44.718+0000] {workflow_output_handler.py:361} INFO - Processor: Processed 155 records, filtered 0 records, found 51 errors
[2023-11-14T09:35:44.719+0000] {workflow_output_handler.py:361} INFO - Processor: Processed 155 records, filtered 0 records, found 0 errors
[2023-11-14T09:35:44.719+0000] {workflow_output_handler.py:361} INFO - Sink: Processed 154 records, filtered 0 records, found 0 errors
[2023-11-14T09:36:07.975+0000] {profiler_interface.py:302} INFO - Skipping metrics for Products.Product due to (pymysql.err.ProgrammingError) (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-sales-db.Products,\n (SELECT @counter := COUNT() FROM aveva-sales...' at line 10")
[SQL: / {"app": "OpenMetadata", "version": "1.2.0.1"} */
Screenshots or steps to reproduce

Expected behavior
after connecting the mysql database the profiler ingestion should run successfully
Version:
Lastest version as on 14-11-2023
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: