Skip to content
This repository was archived by the owner on Feb 27, 2025. It is now read-only.

[Question] how to set MAXDOP #237

Open
guoliqiang opened this issue Aug 16, 2023 · 0 comments
Open

[Question] how to set MAXDOP #237

guoliqiang opened this issue Aug 16, 2023 · 0 comments

Comments

@guoliqiang
Copy link

Hi Team,
when I query data from SQL server, if I intent to control the CPU usage, I always use

select * from XXX option (MAXDOP 1)

How to achieve this by spark sql connector?

I tried to pass above query through option("query"), it throws a syntax error.

java.lang.Error: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'OPTION'.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant