[ 
https://issues.apache.org/jira/browse/KYLIN-6020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17928289#comment-17928289
 ] 

Guoliang Sun commented on KYLIN-6020:
-------------------------------------

h3. Dev Design

There is no priority conflict between `forceToPushDown` in the API and 
`forceToPushDown` in the configuration. If either one is `true`, it is 
considered as forcing pushdown.  

The specific implementation is to override the `isForcedToPushDown` method in 
the `SQLRequest` class. If `forceToPushDown` in the project configuration is 
`true` or `forceToPushDown` in the request is `true`, the method will return 
`true`.  

A new system-level configuration item `kylin.query.pushdown-force` is added. 
The priority of `forceToPushDown` should be: API > Project > System. The 
API-level setting takes precedence. If it is `null`, the project-level and then 
the system-level configuration will be checked. The default value for the 
system-level configuration is `false`.  

The specific implementation is to override the `isForcedToPushDown` method in 
the `SQLRequest` class. The parameter type for the API is changed to `Boolean` 
to allow a `null` state.

> Add system-level/project-level configuration to allow direct querying of 
> internal tables.
> -----------------------------------------------------------------------------------------
>
>                 Key: KYLIN-6020
>                 URL: https://issues.apache.org/jira/browse/KYLIN-6020
>             Project: Kylin
>          Issue Type: Improvement
>    Affects Versions: 5.0.0
>            Reporter: Guoliang Sun
>            Priority: Major
>
> Add a system-level and project-level configuration, defaulting to `false`. 
> When enabled, all query requests will directly query internal tables.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to