You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched the issues and found no similar issues.
What Happened
I have a query in MySQL and when apply the line sqlfluff fix extraction_notification.sql --rules CP01 --dialect ansi appear an error with LT02 y LT05
Expected Behaviour
There are not critical errors
Observed Behaviour
CRITICAL [LT02] Applying rule LT02 to 'C:\\Users\\Documents\\extraction_notification.sql' threw an Exception: can't multiply sequence by non-int of type 'str' TypeError: can't multiply sequence by non-int of type 'str'
CRITICAL [LT05] Applying rule LT05 to 'C:\\Users\\Documents\\extraction_notification.sql' threw an Exception: can't multiply sequence by non-int of type 'str' TypeError: can't multiply sequence by non-int of type 'str'
How to reproduce
the steps are:
1- Run the syntax: sqlfluff fix extraction_notification.sql --rules CP01 --dialect ansi
2- check the query: SELECT noti.public_id AS 'public_id', co.name AS 'empresa', inv.reference_number AS 'referencia' FROM core.notification noti INNER JOIN core.customer co ON noti.customer_id = co.customer_id LEFT JOIN core.invoice inv ON inv.invoice_id = noti.object_related_id AND noti.object_related = 'invoice'
Search before asking
What Happened
I have a query in MySQL and when apply the line
sqlfluff fix extraction_notification.sql --rules CP01 --dialect ansi
appear an error with LT02 y LT05Expected Behaviour
There are not critical errors
Observed Behaviour
CRITICAL [LT02] Applying rule LT02 to 'C:\\Users\\Documents\\extraction_notification.sql' threw an Exception: can't multiply sequence by non-int of type 'str' TypeError: can't multiply sequence by non-int of type 'str'
CRITICAL [LT05] Applying rule LT05 to 'C:\\Users\\Documents\\extraction_notification.sql' threw an Exception: can't multiply sequence by non-int of type 'str' TypeError: can't multiply sequence by non-int of type 'str'
How to reproduce
the steps are:
1- Run the syntax:
sqlfluff fix extraction_notification.sql --rules CP01 --dialect ansi
2- check the query:
SELECT noti.public_id AS 'public_id', co.name AS 'empresa', inv.reference_number AS 'referencia' FROM core.notification noti INNER JOIN core.customer co ON noti.customer_id = co.customer_id LEFT JOIN core.invoice inv ON inv.invoice_id = noti.object_related_id AND noti.object_related = 'invoice'
Dialect
mysql
Version
sqlfluff, version 3.0.6
Configuration
Are you willing to work on and submit a PR to address the issue?
Code of Conduct
The text was updated successfully, but these errors were encountered: