select * from pit_report_period_at_date("is_common_ori", 2022.07.12, [2019.12.31], 0) order by code /* source_table = loadTable("dfs://pit_stock_ts", "is_common_adj"); m_nDate = [2021.12.12] report_period = [2019.12.31] query_table = table(report_period, m_nDate) query_table_exp = select * from cj(query_table, select code from source_table where partition(code, 0) group by code map) // query_table_exp source_table_part = select source_table.* from ej(source_table, query_table_exp, `code`report_period) where partition(code, 0) select top 100 * from aj(query_table_exp, source_table_part, `code`report_period`m_nDate, `code`report_period`appear_at_date) order by code */