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

[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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant