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

when resolve sql not support group by 1,2,3 this stytle #245

Open
long1208 opened this issue Mar 12, 2022 · 0 comments
Open

when resolve sql not support group by 1,2,3 this stytle #245

long1208 opened this issue Mar 12, 2022 · 0 comments

Comments

@long1208
Copy link

sql :
select
countdate,-----统计日期
fstrmerchantid_name,
SUBSTRING(fstrmerchantid_name,1,instr(fstrmerchantid_name,'-')-1) as fstrmerchantid,
fuifundprojectid_name,
SUBSTRING(fuifundprojectid_name,1,instr(fuifundprojectid_name,'-')-1) as fuifundprojectid,
l0_fuiconfigquota,
l0_fuifundprojectidnames,
l0_fuiquotatypedesc,
l0_fstrfailunconfirmamounttypedesc,
l0_fuiwaitlendamount,
l0_fuilendprocessingamount,
l0_fuilendedamount,
l0_fuiremaintolendamount,
l1_fuiconfigquota,
l1_fstrtotalamounttypedesc,
l1_fstrfailunconfirmamounttypedesc,
l1_fuiwaitlendamount,
l1_fuilendprocessingamount,
l1_fuilendedamount,
l1_fuiremaintolendamount
from xy_mart.fact_loan_fund_lend_quota
group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20

code :
RelNode relNode = trinoToRelConverter.convertSql(a);
RelToTrinoConverter relToTrinoConverter = new RelToTrinoConverter();
String expandedSql = relToTrinoConverter.convert(relNode);

error
image

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