You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "vipcxj (via GitHub)" <gi...@apache.org> on 2025/12/03 01:47:14 UTC

[I] [Enhancement] Ignore FOREIGN_KEY_CHECKS, or at least prevent it from throwing errors [doris]

vipcxj opened a new issue, #58652:
URL: https://github.com/apache/doris/issues/58652

   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Description
   
   I don't actually need the FOREIGN_KEY_CHECKS feature. But right now, as soon as it's used, an error is raised whether it's set to true or false. Tools like phpMyAdmin automatically force it to be added, which prevents any SQL from executing.
   
   ### Solution
   
    I would like at least one configuration option to directly ignore these variable settings instead of throwing an error. And of course, if some variables simply aren't supported for modification but the functionality is already supported, then at minimum when the variable being set already matches Doris semantics, it should not error by default.
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [I] [Enhancement] Ignore FOREIGN_KEY_CHECKS, or at least prevent it from throwing errors [doris]

Posted by "yiguolei (via GitHub)" <gi...@apache.org>.
yiguolei closed issue #58652: [Enhancement] Ignore FOREIGN_KEY_CHECKS, or at least prevent it from throwing errors
URL: https://github.com/apache/doris/issues/58652


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [I] [Enhancement] Ignore FOREIGN_KEY_CHECKS, or at least prevent it from throwing errors [doris]

Posted by "yiguolei (via GitHub)" <gi...@apache.org>.
yiguolei commented on issue #58652:
URL: https://github.com/apache/doris/issues/58652#issuecomment-3644550405

   @vipcxj  Will try to fix it in Doris 4.0.3


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [I] [Enhancement] Ignore FOREIGN_KEY_CHECKS, or at least prevent it from throwing errors [doris]

Posted by "vipcxj (via GitHub)" <gi...@apache.org>.
vipcxj commented on issue #58652:
URL: https://github.com/apache/doris/issues/58652#issuecomment-3617210972

   @yiguolei It's precisely because Doris doesn't support FOREIGN_KEY_CHECKS at all that it's not in Doris's source code. I hope there can at least be an option to allow Doris to ignore these variables it doesn't support, instead of throwing an error. If silently ignoring all variables wholesale is considered too risky, it could be implemented as a whitelist; Doris doesn't need to know what the whitelisted variables do, it just needs to ignore them.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [I] [Enhancement] Ignore FOREIGN_KEY_CHECKS, or at least prevent it from throwing errors [doris]

Posted by "yiguolei (via GitHub)" <gi...@apache.org>.
yiguolei commented on issue #58652:
URL: https://github.com/apache/doris/issues/58652#issuecomment-3615779411

   What is FOREIGN_KEY_CHECKS. Actually I do not find the related keyword in doris' code.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org