Hi,
Here is the kylin ui cube information:



And I check the parquet content:



Tables content,they join on tb_sales3.emp_id and tb_emp.id



Cube dimensions and measures:




------------------ ???????? ------------------
??????:                                                                         
                                               "dev"                            
                                                        <[email protected]&gt;;
????????:&nbsp;2021??2??15??(??????) ????2:37
??????:&nbsp;"dev"<[email protected]&gt;;"wujunxi"<[email protected]&gt;;

????:&nbsp;Re:Query fact table and return nothing



Hi,
&nbsp; &nbsp; From the provided information, it is not easy to find the right 
cause.
&nbsp; &nbsp; Could you please check the segments of your cube (test1_2) are 
not empty ? Or you can check the Spark UI of SparderContext, to see the 
corresponding Spark Job and check if they have scan any rows of data ? 

--

Best wishes to you ! 
From ??Xiaoxiang Yu





?? 2021-02-12 13:26:58??"KrisWu" <[email protected]&gt; ??????
&gt;Hi,I am using kylin4.0. I have built a cube ,when i query fact table,it
&gt;return nothing,but look up tables have results.what's the problem?
&gt;
&gt;query log:
&gt;Fact table??
&gt;==========================[QUERY]===============================
&gt;Query Id: 57bf1c59-5c5d-1013-20f5-374eb701f9e8
&gt;SQL: select count(*) from tb_sales
&gt;User: ADMIN
&gt;Success: true
&gt;Duration: 1.297
&gt;Project: wjx
&gt;Realization Names: [CUBE[name=test1_2]]
&gt;Cuboid Ids: [1]
&gt;Total scan count: 0
&gt;Total scan files: 0
&gt;Total metadata time: 2ms
&gt;Total spark scan time: -1ms
&gt;Total scan bytes: -1
&gt;Result row count: 1
&gt;Storage cache used: false
&gt;Is Query Push-Down: false
&gt;Is Prepare: false
&gt;Used Spark pool: lightweight_tasks
&gt;Trace URL: null
&gt;Message: null
&gt;
&gt;
&gt;Look up table:
&gt;==========================[QUERY]===============================
&gt;Query Id: 8be51b8d-c76e-58ba-2e0e-fa67162d5888
&gt;SQL: select count(*) from tb_emp
&gt;User: ADMIN
&gt;Success: true
&gt;Duration: 0.002
&gt;Project: wjx
&gt;Realization Names: [CUBE[name=test1_2]]
&gt;Cuboid Ids: []
&gt;Total scan count: 2
&gt;Total scan files: 1
&gt;Total metadata time: 7ms
&gt;Total spark scan time: 1104ms
&gt;Total scan bytes: -1
&gt;Result row count: 1
&gt;Storage cache used: true
&gt;Is Query Push-Down: false
&gt;Is Prepare: false
&gt;Used Spark pool: lightweight_tasks
&gt;Trace URL: null
&gt;Message: null
&gt;
&gt;
&gt;--
&gt;Sent from: http://apache-kylin.74782.x6.nabble.com/

Reply via email to