Skip to content

azure-synapse-spark needs linting updates for pylint version 3.2.7 #39302

Open
@azure-sdk

Description

@azure-sdk

ACTION NEEDED: This version of pylint will be merged on 2025-04-14. The build will begin to fail for this library if errors are not fixed.

Library name: azure-synapse-spark
Pylint version: 3.2.7
Pylint Build: Link to build (2025-04-06)

Pylint Errors:

2025-04-06T10:21:46.1689581Z ************* Module azure
2025-04-06T10:21:46.1690395Z azure/init.py:1: [C0304(missing-final-newline), ] Final newline missing
2025-04-06T10:21:46.1691209Z ************* Module azure.synapse.init
2025-04-06T10:21:46.1691626Z azure/synapse/init.py:1: [C0304(missing-final-newline), ] Final newline missing
2025-04-06T10:21:46.1692046Z ************* Module azure.synapse.spark._spark_client
2025-04-06T10:21:46.1692472Z azure/synapse/spark/_spark_client.py:79: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.1692952Z azure/synapse/spark/_spark_client.py:80: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.1693467Z azure/synapse/spark/_spark_client.py:16: [C4760(no-typing-import-in-type-check), ] Do not import from typing inside of TYPE_CHECKING.
2025-04-06T10:21:46.1694485Z azure/synapse/spark/_spark_client.py:19: [C4756(no-legacy-azure-core-http-response-import), ] Do not import HttpResponse from azure.core.pipeline.transport outside of Azure Core.
2025-04-06T10:21:46.1695225Z azure/synapse/spark/_spark_client.py:21: [C0413(wrong-import-position), ] Import "from ._configuration import SparkClientConfiguration" should be placed at the top of the module
2025-04-06T10:21:46.1695952Z azure/synapse/spark/_spark_client.py:22: [C0413(wrong-import-position), ] Import "from .operations import SparkBatchOperations" should be placed at the top of the module
2025-04-06T10:21:46.1696619Z azure/synapse/spark/_spark_client.py:23: [C0413(wrong-import-position), ] Import "from .operations import SparkSessionOperations" should be placed at the top of the module
2025-04-06T10:21:46.1697228Z azure/synapse/spark/_spark_client.py:24: [C0413(wrong-import-position), ] Import "from . import models" should be placed at the top of the module
2025-04-06T10:21:46.1697958Z azure/synapse/spark/_spark_client.py:27: [C4748(client-accepts-api-version-keyword), SparkClient] The client constructor needs to take in an optional keyword-only api_version argument. See details: https://azure.github.io/azure-sdk/python_design.html#specifying-the-service-version
2025-04-06T10:21:46.1698707Z azure/synapse/spark/_spark_client.py:44: [C4761(do-not-use-legacy-typing), SparkClient.init] Do not use legacy typing using comments.
2025-04-06T10:21:46.1699653Z azure/synapse/spark/_spark_client.py:67: [C4758(docstring-keyword-should-match-keyword-only), SparkClient._send_request] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.1700621Z azure/synapse/spark/_spark_client.py:67: [C4761(do-not-use-legacy-typing), SparkClient._send_request] Do not use legacy typing using comments.
2025-04-06T10:21:46.1701250Z azure/synapse/spark/_spark_client.py:84: [W0212(protected-access), SparkClient._send_request] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.1701843Z azure/synapse/spark/_spark_client.py:87: [C4761(do-not-use-legacy-typing), SparkClient.close] Do not use legacy typing using comments.
2025-04-06T10:21:46.1702479Z azure/synapse/spark/_spark_client.py:91: [C4761(do-not-use-legacy-typing), SparkClient.enter] Do not use legacy typing using comments.
2025-04-06T10:21:46.1703092Z azure/synapse/spark/_spark_client.py:96: [C4761(do-not-use-legacy-typing), SparkClient.exit] Do not use legacy typing using comments.
2025-04-06T10:21:46.1703917Z azure/synapse/spark/_spark_client.py:12: [C0411(wrong-import-order), ] third party import "msrest.Deserializer" should be placed before first party import "azure.core.PipelineClient"
2025-04-06T10:21:46.1704525Z ************* Module azure.synapse.spark._configuration
2025-04-06T10:21:46.1704976Z azure/synapse/spark/_configuration.py:81: [C0301(line-too-long), ] Line too long (129/120)
2025-04-06T10:21:46.1705689Z azure/synapse/spark/_configuration.py:18: [C4760(no-typing-import-in-type-check), ] Do not import from typing inside of TYPE_CHECKING.
2025-04-06T10:21:46.1706342Z azure/synapse/spark/_configuration.py:23: [R0902(too-many-instance-attributes), SparkClientConfiguration] Too many instance attributes (14/10)
2025-04-06T10:21:46.1707094Z azure/synapse/spark/_configuration.py:39: [C4761(do-not-use-legacy-typing), SparkClientConfiguration.init] Do not use legacy typing using comments.
2025-04-06T10:21:46.1707736Z azure/synapse/spark/_configuration.py:66: [C4761(do-not-use-legacy-typing), SparkClientConfiguration._configure] Do not use legacy typing using comments.
2025-04-06T10:21:46.1708266Z ************* Module azure.synapse.spark.aio._spark_client
2025-04-06T10:21:46.1708727Z azure/synapse/spark/aio/_spark_client.py:75: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.1709031Z azure/synapse/spark/aio/_spark_client.py:76: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.1709369Z azure/synapse/spark/aio/_spark_client.py:12: [C4756(no-legacy-azure-core-http-response-import), ] Do not import HttpResponse from azure.core.pipeline.transport outside of Azure Core.
2025-04-06T10:21:46.1709754Z azure/synapse/spark/aio/_spark_client.py:19: [C0413(wrong-import-position), ] Import "from ._configuration import SparkClientConfiguration" should be placed at the top of the module
2025-04-06T10:21:46.1710124Z azure/synapse/spark/aio/_spark_client.py:20: [C0413(wrong-import-position), ] Import "from .operations import SparkBatchOperations" should be placed at the top of the module
2025-04-06T10:21:46.1710490Z azure/synapse/spark/aio/_spark_client.py:21: [C0413(wrong-import-position), ] Import "from .operations import SparkSessionOperations" should be placed at the top of the module
2025-04-06T10:21:46.1711109Z azure/synapse/spark/aio/_spark_client.py:22: [C0413(wrong-import-position), ] Import "from .. import models" should be placed at the top of the module
2025-04-06T10:21:46.1711677Z azure/synapse/spark/aio/_spark_client.py:25: [C4748(client-accepts-api-version-keyword), SparkClient] The client constructor needs to take in an optional keyword-only api_version argument. See details: https://azure.github.io/azure-sdk/python_design.html#specifying-the-service-version
2025-04-06T10:21:46.1712407Z azure/synapse/spark/aio/_spark_client.py:64: [C4758(docstring-keyword-should-match-keyword-only), SparkClient._send_request] "stream" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.1713056Z azure/synapse/spark/aio/_spark_client.py:80: [W0212(protected-access), SparkClient._send_request] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.1713769Z azure/synapse/spark/aio/_spark_client.py:13: [C0411(wrong-import-order), ] third party import "msrest.Deserializer" should be placed before first party imports "azure.core.AsyncPipelineClient", "azure.core.pipeline.transport.AsyncHttpResponse"
2025-04-06T10:21:46.1714284Z ************* Module azure.synapse.spark.aio._configuration
2025-04-06T10:21:46.1714728Z azure/synapse/spark/aio/_configuration.py:77: [C0301(line-too-long), ] Line too long (134/120)
2025-04-06T10:21:46.1715248Z azure/synapse/spark/aio/_configuration.py:21: [R0902(too-many-instance-attributes), SparkClientConfiguration] Too many instance attributes (14/10)
2025-04-06T10:21:46.1715700Z ************* Module azure.synapse.spark.aio.operations._spark_session_operations
2025-04-06T10:21:46.1716148Z azure/synapse/spark/aio/operations/_spark_session_operations.py:11: [C0301(line-too-long), ] Line too long (133/120)
2025-04-06T10:21:46.1716605Z azure/synapse/spark/aio/operations/_spark_session_operations.py:75: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.1717189Z azure/synapse/spark/aio/operations/_spark_session_operations.py:76: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.1717626Z azure/synapse/spark/aio/operations/_spark_session_operations.py:107: [C0301(line-too-long), ] Line too long (131/120)
2025-04-06T10:21:46.1718189Z azure/synapse/spark/aio/operations/_spark_session_operations.py:139: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.1718636Z azure/synapse/spark/aio/operations/_spark_session_operations.py:140: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.1719092Z azure/synapse/spark/aio/operations/_spark_session_operations.py:171: [C0301(line-too-long), ] Line too long (133/120)
2025-04-06T10:21:46.1719536Z azure/synapse/spark/aio/operations/_spark_session_operations.py:202: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.1719980Z azure/synapse/spark/aio/operations/_spark_session_operations.py:203: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.1720436Z azure/synapse/spark/aio/operations/_spark_session_operations.py:231: [C0301(line-too-long), ] Line too long (142/120)
2025-04-06T10:21:46.1720869Z azure/synapse/spark/aio/operations/_spark_session_operations.py:257: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.1721311Z azure/synapse/spark/aio/operations/_spark_session_operations.py:258: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.1721761Z azure/synapse/spark/aio/operations/_spark_session_operations.py:280: [C0301(line-too-long), ] Line too long (145/120)
2025-04-06T10:21:46.1722207Z azure/synapse/spark/aio/operations/_spark_session_operations.py:306: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.3987985Z azure/synapse/spark/aio/operations/_spark_session_operations.py:307: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.3989069Z azure/synapse/spark/aio/operations/_spark_session_operations.py:329: [C0301(line-too-long), ] Line too long (166/120)
2025-04-06T10:21:46.3989791Z azure/synapse/spark/aio/operations/_spark_session_operations.py:356: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.3990556Z azure/synapse/spark/aio/operations/_spark_session_operations.py:357: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.3991325Z azure/synapse/spark/aio/operations/_spark_session_operations.py:383: [C0301(line-too-long), ] Line too long (156/120)
2025-04-06T10:21:46.3992018Z azure/synapse/spark/aio/operations/_spark_session_operations.py:414: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.3992798Z azure/synapse/spark/aio/operations/_spark_session_operations.py:415: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.3994159Z azure/synapse/spark/aio/operations/_spark_session_operations.py:445: [C0301(line-too-long), ] Line too long (158/120)
2025-04-06T10:21:46.3996503Z azure/synapse/spark/aio/operations/_spark_session_operations.py:475: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.3997297Z azure/synapse/spark/aio/operations/_spark_session_operations.py:476: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.3997916Z azure/synapse/spark/aio/operations/_spark_session_operations.py:503: [C0301(line-too-long), ] Line too long (169/120)
2025-04-06T10:21:46.3998508Z azure/synapse/spark/aio/operations/_spark_session_operations.py:533: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.3999076Z azure/synapse/spark/aio/operations/_spark_session_operations.py:534: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.3999639Z azure/synapse/spark/aio/operations/_spark_session_operations.py:561: [C0301(line-too-long), ] Line too long (179/120)
2025-04-06T10:21:46.4000311Z azure/synapse/spark/aio/operations/_spark_session_operations.py:13: [C4756(no-legacy-azure-core-http-response-import), ] Do not import HttpResponse from azure.core.pipeline.transport outside of Azure Core.
2025-04-06T10:21:46.4001572Z azure/synapse/spark/aio/operations/_spark_session_operations.py:42: [C4758(docstring-keyword-should-match-keyword-only), SparkSessionOperations.get_spark_sessions] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.4003170Z azure/synapse/spark/aio/operations/_spark_session_operations.py:94: [W0212(protected-access), SparkSessionOperations.get_spark_sessions] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.4004450Z azure/synapse/spark/aio/operations/_spark_session_operations.py:109: [C4758(docstring-keyword-should-match-keyword-only), SparkSessionOperations.create_spark_session] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.4005607Z azure/synapse/spark/aio/operations/_spark_session_operations.py:158: [W0212(protected-access), SparkSessionOperations.create_spark_session] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.4006706Z azure/synapse/spark/aio/operations/_spark_session_operations.py:173: [C4758(docstring-keyword-should-match-keyword-only), SparkSessionOperations.get_spark_session] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.4007872Z azure/synapse/spark/aio/operations/_spark_session_operations.py:218: [W0212(protected-access), SparkSessionOperations.get_spark_session] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.4009042Z azure/synapse/spark/aio/operations/_spark_session_operations.py:233: [C4758(docstring-keyword-should-match-keyword-only), SparkSessionOperations.cancel_spark_session] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.4010200Z azure/synapse/spark/aio/operations/_spark_session_operations.py:270: [W0212(protected-access), SparkSessionOperations.cancel_spark_session] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.4011299Z azure/synapse/spark/aio/operations/_spark_session_operations.py:282: [C4758(docstring-keyword-should-match-keyword-only), SparkSessionOperations.reset_spark_session_timeout] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.4012455Z azure/synapse/spark/aio/operations/_spark_session_operations.py:319: [W0212(protected-access), SparkSessionOperations.reset_spark_session_timeout] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.4013896Z azure/synapse/spark/aio/operations/_spark_session_operations.py:331: [C4758(docstring-keyword-should-match-keyword-only), SparkSessionOperations.get_spark_statements] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.4016371Z azure/synapse/spark/aio/operations/_spark_session_operations.py:370: [W0212(protected-access), SparkSessionOperations.get_spark_statements] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.4017681Z azure/synapse/spark/aio/operations/_spark_session_operations.py:385: [C4758(docstring-keyword-should-match-keyword-only), SparkSessionOperations.create_spark_statement] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.4019338Z azure/synapse/spark/aio/operations/_spark_session_operations.py:432: [W0212(protected-access), SparkSessionOperations.create_spark_statement] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.4020669Z azure/synapse/spark/aio/operations/_spark_session_operations.py:447: [C4758(docstring-keyword-should-match-keyword-only), SparkSessionOperations.get_spark_statement] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.4021962Z azure/synapse/spark/aio/operations/_spark_session_operations.py:490: [W0212(protected-access), SparkSessionOperations.get_spark_statement] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.4023214Z azure/synapse/spark/aio/operations/_spark_session_operations.py:505: [C4758(docstring-keyword-should-match-keyword-only), SparkSessionOperations.cancel_spark_statement] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.4024737Z azure/synapse/spark/aio/operations/_spark_session_operations.py:548: [W0212(protected-access), SparkSessionOperations.cancel_spark_statement] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.4025637Z azure/synapse/spark/aio/operations/_spark_session_operations.py:8: [W0611(unused-import), ] Unused Generic imported from typing
2025-04-06T10:21:46.4026375Z azure/synapse/spark/aio/operations/_spark_session_operations.py:9: [W0611(unused-import), ] Unused import warnings
2025-04-06T10:21:46.4027049Z ************* Module azure.synapse.spark.aio.operations._spark_batch_operations
2025-04-06T10:21:46.4028390Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:11: [C0301(line-too-long), ] Line too long (133/120)
2025-04-06T10:21:46.4029229Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:75: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.5523344Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:76: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.5525608Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:107: [C0301(line-too-long), ] Line too long (132/120)
2025-04-06T10:21:46.5526375Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:139: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.5527904Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:140: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.5528744Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:171: [C0301(line-too-long), ] Line too long (134/120)
2025-04-06T10:21:46.5529423Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:202: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.5530139Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:203: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.5530974Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:231: [C0301(line-too-long), ] Line too long (141/120)
2025-04-06T10:21:46.5531694Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:257: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.5532363Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:258: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.5533355Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:280: [C0301(line-too-long), ] Line too long (144/120)
2025-04-06T10:21:46.5534274Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:13: [C4756(no-legacy-azure-core-http-response-import), ] Do not import HttpResponse from azure.core.pipeline.transport outside of Azure Core.
2025-04-06T10:21:46.5535481Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:42: [C4758(docstring-keyword-should-match-keyword-only), SparkBatchOperations.get_spark_batch_jobs] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.5536361Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:94: [W0212(protected-access), SparkBatchOperations.get_spark_batch_jobs] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.5537450Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:109: [C4758(docstring-keyword-should-match-keyword-only), SparkBatchOperations.create_spark_batch_job] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.5538330Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:158: [W0212(protected-access), SparkBatchOperations.create_spark_batch_job] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.5539320Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:173: [C4758(docstring-keyword-should-match-keyword-only), SparkBatchOperations.get_spark_batch_job] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.5540251Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:218: [W0212(protected-access), SparkBatchOperations.get_spark_batch_job] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.5541541Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:233: [C4758(docstring-keyword-should-match-keyword-only), SparkBatchOperations.cancel_spark_batch_job] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.5542495Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:270: [W0212(protected-access), SparkBatchOperations.cancel_spark_batch_job] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.5543289Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:8: [W0611(unused-import), ] Unused Generic imported from typing
2025-04-06T10:21:46.5544181Z azure/synapse/spark/aio/operations/_spark_batch_operations.py:9: [W0611(unused-import), ] Unused import warnings
2025-04-06T10:21:46.5544893Z ************* Module azure.synapse.spark.operations._spark_session_operations
2025-04-06T10:21:46.5545701Z azure/synapse/spark/operations/_spark_session_operations.py:11: [C0301(line-too-long), ] Line too long (133/120)
2025-04-06T10:21:46.5546542Z azure/synapse/spark/operations/_spark_session_operations.py:80: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.5547572Z azure/synapse/spark/operations/_spark_session_operations.py:81: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.5548440Z azure/synapse/spark/operations/_spark_session_operations.py:112: [C0301(line-too-long), ] Line too long (131/120)
2025-04-06T10:21:46.5549460Z azure/synapse/spark/operations/_spark_session_operations.py:145: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.5550227Z azure/synapse/spark/operations/_spark_session_operations.py:146: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.5551186Z azure/synapse/spark/operations/_spark_session_operations.py:177: [C0301(line-too-long), ] Line too long (133/120)
2025-04-06T10:21:46.5551955Z azure/synapse/spark/operations/_spark_session_operations.py:209: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.5552706Z azure/synapse/spark/operations/_spark_session_operations.py:210: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.5553447Z azure/synapse/spark/operations/_spark_session_operations.py:238: [C0301(line-too-long), ] Line too long (142/120)
2025-04-06T10:21:46.5554476Z azure/synapse/spark/operations/_spark_session_operations.py:265: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.5555233Z azure/synapse/spark/operations/_spark_session_operations.py:266: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.5555965Z azure/synapse/spark/operations/_spark_session_operations.py:288: [C0301(line-too-long), ] Line too long (145/120)
2025-04-06T10:21:46.5556698Z azure/synapse/spark/operations/_spark_session_operations.py:315: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.5557410Z azure/synapse/spark/operations/_spark_session_operations.py:316: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.5558156Z azure/synapse/spark/operations/_spark_session_operations.py:338: [C0301(line-too-long), ] Line too long (166/120)
2025-04-06T10:21:46.5558910Z azure/synapse/spark/operations/_spark_session_operations.py:366: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.5559686Z azure/synapse/spark/operations/_spark_session_operations.py:367: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.5560454Z azure/synapse/spark/operations/_spark_session_operations.py:393: [C0301(line-too-long), ] Line too long (156/120)
2025-04-06T10:21:46.5561185Z azure/synapse/spark/operations/_spark_session_operations.py:425: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.5561924Z azure/synapse/spark/operations/_spark_session_operations.py:426: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.5562657Z azure/synapse/spark/operations/_spark_session_operations.py:456: [C0301(line-too-long), ] Line too long (158/120)
2025-04-06T10:21:46.5563392Z azure/synapse/spark/operations/_spark_session_operations.py:487: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.5564475Z azure/synapse/spark/operations/_spark_session_operations.py:488: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.5565205Z azure/synapse/spark/operations/_spark_session_operations.py:515: [C0301(line-too-long), ] Line too long (169/120)
2025-04-06T10:21:46.5565972Z azure/synapse/spark/operations/_spark_session_operations.py:546: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:46.5566704Z azure/synapse/spark/operations/_spark_session_operations.py:547: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:46.5567400Z azure/synapse/spark/operations/_spark_session_operations.py:574: [C0301(line-too-long), ] Line too long (179/120)
2025-04-06T10:21:46.5568207Z azure/synapse/spark/operations/_spark_session_operations.py:13: [C4756(no-legacy-azure-core-http-response-import), ] Do not import HttpResponse from azure.core.pipeline.transport outside of Azure Core.
2025-04-06T10:21:46.5569109Z azure/synapse/spark/operations/_spark_session_operations.py:19: [C4760(no-typing-import-in-type-check), ] Do not import from typing inside of TYPE_CHECKING.
2025-04-06T10:21:46.7321816Z azure/synapse/spark/operations/_spark_session_operations.py:46: [C4758(docstring-keyword-should-match-keyword-only), SparkSessionOperations.get_spark_sessions] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.7324624Z azure/synapse/spark/operations/_spark_session_operations.py:46: [C4761(do-not-use-legacy-typing), SparkSessionOperations.get_spark_sessions] Do not use legacy typing using comments.
2025-04-06T10:21:46.7325766Z azure/synapse/spark/operations/_spark_session_operations.py:99: [W0212(protected-access), SparkSessionOperations.get_spark_sessions] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.7327519Z azure/synapse/spark/operations/_spark_session_operations.py:114: [C4758(docstring-keyword-should-match-keyword-only), SparkSessionOperations.create_spark_session] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.7329201Z azure/synapse/spark/operations/_spark_session_operations.py:114: [C4761(do-not-use-legacy-typing), SparkSessionOperations.create_spark_session] Do not use legacy typing using comments.
2025-04-06T10:21:46.7330332Z azure/synapse/spark/operations/_spark_session_operations.py:164: [W0212(protected-access), SparkSessionOperations.create_spark_session] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.7331825Z azure/synapse/spark/operations/_spark_session_operations.py:179: [C4758(docstring-keyword-should-match-keyword-only), SparkSessionOperations.get_spark_session] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.7333258Z azure/synapse/spark/operations/_spark_session_operations.py:179: [C4761(do-not-use-legacy-typing), SparkSessionOperations.get_spark_session] Do not use legacy typing using comments.
2025-04-06T10:21:46.7334556Z azure/synapse/spark/operations/_spark_session_operations.py:225: [W0212(protected-access), SparkSessionOperations.get_spark_session] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.7335657Z azure/synapse/spark/operations/_spark_session_operations.py:240: [C4758(docstring-keyword-should-match-keyword-only), SparkSessionOperations.cancel_spark_session] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.7336516Z azure/synapse/spark/operations/_spark_session_operations.py:240: [C4761(do-not-use-legacy-typing), SparkSessionOperations.cancel_spark_session] Do not use legacy typing using comments.
2025-04-06T10:21:46.7337265Z azure/synapse/spark/operations/_spark_session_operations.py:278: [W0212(protected-access), SparkSessionOperations.cancel_spark_session] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.7338057Z azure/synapse/spark/operations/_spark_session_operations.py:240: [R1710(inconsistent-return-statements), SparkSessionOperations.cancel_spark_session] Either all return statements in a function should return an expression, or none of them should.
2025-04-06T10:21:46.7339007Z azure/synapse/spark/operations/_spark_session_operations.py:290: [C4758(docstring-keyword-should-match-keyword-only), SparkSessionOperations.reset_spark_session_timeout] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.7340029Z azure/synapse/spark/operations/_spark_session_operations.py:290: [C4761(do-not-use-legacy-typing), SparkSessionOperations.reset_spark_session_timeout] Do not use legacy typing using comments.
2025-04-06T10:21:46.7340774Z azure/synapse/spark/operations/_spark_session_operations.py:328: [W0212(protected-access), SparkSessionOperations.reset_spark_session_timeout] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.7341793Z azure/synapse/spark/operations/_spark_session_operations.py:290: [R1710(inconsistent-return-statements), SparkSessionOperations.reset_spark_session_timeout] Either all return statements in a function should return an expression, or none of them should.
2025-04-06T10:21:46.7343014Z azure/synapse/spark/operations/_spark_session_operations.py:340: [C4758(docstring-keyword-should-match-keyword-only), SparkSessionOperations.get_spark_statements] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.7344574Z azure/synapse/spark/operations/_spark_session_operations.py:340: [C4761(do-not-use-legacy-typing), SparkSessionOperations.get_spark_statements] Do not use legacy typing using comments.
2025-04-06T10:21:46.7345404Z azure/synapse/spark/operations/_spark_session_operations.py:380: [W0212(protected-access), SparkSessionOperations.get_spark_statements] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.7346458Z azure/synapse/spark/operations/_spark_session_operations.py:395: [C4758(docstring-keyword-should-match-keyword-only), SparkSessionOperations.create_spark_statement] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.7347332Z azure/synapse/spark/operations/_spark_session_operations.py:395: [C4761(do-not-use-legacy-typing), SparkSessionOperations.create_spark_statement] Do not use legacy typing using comments.
2025-04-06T10:21:46.7348115Z azure/synapse/spark/operations/_spark_session_operations.py:443: [W0212(protected-access), SparkSessionOperations.create_spark_statement] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.7349140Z azure/synapse/spark/operations/_spark_session_operations.py:458: [C4758(docstring-keyword-should-match-keyword-only), SparkSessionOperations.get_spark_statement] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.7349985Z azure/synapse/spark/operations/_spark_session_operations.py:458: [C4761(do-not-use-legacy-typing), SparkSessionOperations.get_spark_statement] Do not use legacy typing using comments.
2025-04-06T10:21:46.7350798Z azure/synapse/spark/operations/_spark_session_operations.py:502: [W0212(protected-access), SparkSessionOperations.get_spark_statement] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.7351984Z azure/synapse/spark/operations/_spark_session_operations.py:517: [C4758(docstring-keyword-should-match-keyword-only), SparkSessionOperations.cancel_spark_statement] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:46.7352936Z azure/synapse/spark/operations/_spark_session_operations.py:517: [C4761(do-not-use-legacy-typing), SparkSessionOperations.cancel_spark_statement] Do not use legacy typing using comments.
2025-04-06T10:21:46.7354130Z azure/synapse/spark/operations/_spark_session_operations.py:561: [W0212(protected-access), SparkSessionOperations.cancel_spark_statement] Access to a protected member _pipeline of a client class
2025-04-06T10:21:46.7354807Z azure/synapse/spark/operations/_spark_session_operations.py:9: [W0611(unused-import), ] Unused import warnings
2025-04-06T10:21:46.7355602Z ************* Module azure.synapse.spark.operations._spark_batch_operations
2025-04-06T10:21:46.7356355Z azure/synapse/spark/operations/_spark_batch_operations.py:11: [C0301(line-too-long), ] Line too long (133/120)
2025-04-06T10:21:46.7357050Z azure/synapse/spark/operations/_spark_batch_operations.py:80: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:47.5577963Z azure/synapse/spark/operations/_spark_batch_operations.py:81: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:47.5578998Z azure/synapse/spark/operations/_spark_batch_operations.py:112: [C0301(line-too-long), ] Line too long (132/120)
2025-04-06T10:21:47.5579708Z azure/synapse/spark/operations/_spark_batch_operations.py:145: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:47.5580238Z azure/synapse/spark/operations/_spark_batch_operations.py:146: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:47.5580765Z azure/synapse/spark/operations/_spark_batch_operations.py:177: [C0301(line-too-long), ] Line too long (134/120)
2025-04-06T10:21:47.5581288Z azure/synapse/spark/operations/_spark_batch_operations.py:209: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:47.5581805Z azure/synapse/spark/operations/_spark_batch_operations.py:210: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:47.5582337Z azure/synapse/spark/operations/_spark_batch_operations.py:238: [C0301(line-too-long), ] Line too long (141/120)
2025-04-06T10:21:47.5582916Z azure/synapse/spark/operations/_spark_batch_operations.py:265: [C0301(line-too-long), ] Line too long (138/120)
2025-04-06T10:21:47.5583528Z azure/synapse/spark/operations/_spark_batch_operations.py:266: [C0301(line-too-long), ] Line too long (135/120)
2025-04-06T10:21:47.5584906Z azure/synapse/spark/operations/_spark_batch_operations.py:288: [C0301(line-too-long), ] Line too long (144/120)
2025-04-06T10:21:47.5585650Z azure/synapse/spark/operations/_spark_batch_operations.py:13: [C4756(no-legacy-azure-core-http-response-import), ] Do not import HttpResponse from azure.core.pipeline.transport outside of Azure Core.
2025-04-06T10:21:47.5586427Z azure/synapse/spark/operations/_spark_batch_operations.py:19: [C4760(no-typing-import-in-type-check), ] Do not import from typing inside of TYPE_CHECKING.
2025-04-06T10:21:47.5587510Z azure/synapse/spark/operations/_spark_batch_operations.py:46: [C4758(docstring-keyword-should-match-keyword-only), SparkBatchOperations.get_spark_batch_jobs] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:47.5588656Z azure/synapse/spark/operations/_spark_batch_operations.py:46: [C4761(do-not-use-legacy-typing), SparkBatchOperations.get_spark_batch_jobs] Do not use legacy typing using comments.
2025-04-06T10:21:47.5589445Z azure/synapse/spark/operations/_spark_batch_operations.py:99: [W0212(protected-access), SparkBatchOperations.get_spark_batch_jobs] Access to a protected member _pipeline of a client class
2025-04-06T10:21:47.5590567Z azure/synapse/spark/operations/_spark_batch_operations.py:114: [C4758(docstring-keyword-should-match-keyword-only), SparkBatchOperations.create_spark_batch_job] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:47.5591688Z azure/synapse/spark/operations/_spark_batch_operations.py:114: [C4761(do-not-use-legacy-typing), SparkBatchOperations.create_spark_batch_job] Do not use legacy typing using comments.
2025-04-06T10:21:47.5592731Z azure/synapse/spark/operations/_spark_batch_operations.py:164: [W0212(protected-access), SparkBatchOperations.create_spark_batch_job] Access to a protected member _pipeline of a client class
2025-04-06T10:21:47.5594113Z azure/synapse/spark/operations/_spark_batch_operations.py:179: [C4758(docstring-keyword-should-match-keyword-only), SparkBatchOperations.get_spark_batch_job] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:47.5595174Z azure/synapse/spark/operations/_spark_batch_operations.py:179: [C4761(do-not-use-legacy-typing), SparkBatchOperations.get_spark_batch_job] Do not use legacy typing using comments.
2025-04-06T10:21:47.5595911Z azure/synapse/spark/operations/_spark_batch_operations.py:225: [W0212(protected-access), SparkBatchOperations.get_spark_batch_job] Access to a protected member _pipeline of a client class
2025-04-06T10:21:47.5596692Z azure/synapse/spark/operations/_spark_batch_operations.py:240: [C4758(docstring-keyword-should-match-keyword-only), SparkBatchOperations.cancel_spark_batch_job] "cls" missing in docstring or in method signature. There should be a direct correlation between :keyword: arguments in the docstring and keyword-only arguments in method signature. See details: https://azure.github.io/azure-sdk/python_documentation.html#docstrings
2025-04-06T10:21:47.5597242Z azure/synapse/spark/operations/_spark_batch_operations.py:240: [C4761(do-not-use-legacy-typing), SparkBatchOperations.cancel_spark_batch_job] Do not use legacy typing using comments.
2025-04-06T10:21:47.5597635Z azure/synapse/spark/operations/_spark_batch_operations.py:278: [W0212(protected-access), SparkBatchOperations.cancel_spark_batch_job] Access to a protected member _pipeline of a client class
2025-04-06T10:21:47.5598062Z azure/synapse/spark/operations/_spark_batch_operations.py:240: [R1710(inconsistent-return-statements), SparkBatchOperations.cancel_spark_batch_job] Either all return statements in a function should return an expression, or none of them should.
2025-04-06T10:21:47.5598451Z azure/synapse/spark/operations/_spark_batch_operations.py:9: [W0611(unused-import), ] Unused import warnings
2025-04-06T10:21:47.5598726Z ************* Module azure.synapse.spark.models._models
2025-04-06T10:21:47.5599017Z azure/synapse/spark/models/_models.py:12: [R0902(too-many-instance-attributes), SparkBatchJob] Too many instance attributes (18/10)
2025-04-06T10:21:47.5599348Z azure/synapse/spark/models/_models.py:141: [R0902(too-many-instance-attributes), SparkBatchJobOptions] Too many instance attributes (16/10)
2025-04-06T10:21:47.5599690Z azure/synapse/spark/models/_models.py:278: [R0902(too-many-instance-attributes), SparkRequest] Too many instance attributes (14/10)
2025-04-06T10:21:47.5600013Z azure/synapse/spark/models/_models.py:451: [R0902(too-many-instance-attributes), SparkSession] Too many instance attributes (18/10)
2025-04-06T10:21:47.5600338Z azure/synapse/spark/models/_models.py:579: [R0902(too-many-instance-attributes), SparkSessionOptions] Too many instance attributes (16/10)
2025-04-06T10:21:47.5600651Z azure/synapse/spark/models/_models.py:664: [R0902(too-many-instance-attributes), SparkSessionState] Too many instance attributes (11/10)
2025-04-06T10:21:47.5600939Z ************* Module azure.synapse.spark.models._models_py3
2025-04-06T10:21:47.5601213Z azure/synapse/spark/models/_models_py3.py:14: [W0401(wildcard-import), ] Wildcard import _spark_client_enums
2025-04-06T10:21:47.5601538Z azure/synapse/spark/models/_models_py3.py:17: [R0902(too-many-instance-attributes), SparkBatchJob] Too many instance attributes (18/10)
2025-04-06T10:21:47.5601871Z azure/synapse/spark/models/_models_py3.py:169: [R0902(too-many-instance-attributes), SparkBatchJobOptions] Too many instance attributes (16/10)
2025-04-06T10:21:47.5602318Z azure/synapse/spark/models/_models_py3.py:333: [R0902(too-many-instance-attributes), SparkRequest] Too many instance attributes (14/10)
2025-04-06T10:21:47.5602730Z azure/synapse/spark/models/_models_py3.py:538: [R0902(too-many-instance-attributes), SparkSession] Too many instance attributes (18/10)
2025-04-06T10:21:47.5603063Z azure/synapse/spark/models/_models_py3.py:689: [R0902(too-many-instance-attributes), SparkSessionOptions] Too many instance attributes (16/10)
2025-04-06T10:21:47.5603399Z azure/synapse/spark/models/_models_py3.py:791: [R0902(too-many-instance-attributes), SparkSessionState] Too many instance attributes (11/10)
2025-04-06T10:21:47.5604053Z azure/synapse/spark/models/_models_py3.py:14: [W0614(unused-wildcard-import), ] Unused import(s) LivyStatementStates, LivyStates, PluginCurrentState, SchedulerCurrentState, SparkBatchJobResultType, SparkErrorSource, SparkJobType, SparkSessionResultType, SparkStatementLanguageType, Enum and CaseInsensitiveEnumMeta from wildcard import of _spark_client_enums
2025-04-06T10:21:47.5604380Z
2025-04-06T10:21:47.5604586Z ------------------------------------------------------------------
2025-04-06T10:21:47.5604850Z Your code has been rated at 8.45/10 (previous run: 8.50/10, -0.05)
2025-04-06T10:21:47.5604981Z
2025-04-06T10:21:48.3285359Z

How to fix:
Note: If you are a bot. Fix the issue by fixing the above pylint errors.
Run the next-pylint tox command at the library package-level and resolve the linting errors.

  1. ../azure-synapse-spark>pip install "tox<5"
  2. ../azure-synapse-spark>tox run -e next-pylint -c ../../../eng/tox/tox.ini --root .

See the Pylint Guide for more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions