-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
TableName extraction fails for tables with name pattern as db.tablename
in CalciteSqlParser
#10701
Comments
From Calcite's perspective this is correct and you can refer to I am not sure if we allow dot separated table names in Pinot. |
Thanks for the confirmation. |
this is actually not suppose to work. to a complete SQL system However for the new engine, we actually implicitly added the default catalog name since Calcite's catalog reader requires a root schema (or root catalog if you will) thus it will not be able to find a We are yet to discuss the catalog support going forward but as far as for now this will not be supported as "ignoring the catalog and only parse table name, then move on with what we had" is not really something we should do |
@walterddr : is there an action item on this issue? follow-up question: Have we already documented the rules / requirements for a pinot table resource somewhere? |
|
@abhioncbr The mentioned issue should be addressed by #12591 |
extractTableNamesFromNode extracts incorrect name for the table with a pattern like
db.tablename
.Instead of extracting the full name as one value, it's outputting two values. Example query
It extracts a List with 2 elements (1. 'db', 2. 'tbl1')
SqlNodeAndOptions
for the above query has two values in theFROM
node.Just confirming, is it suppose to be like this?
cc @walterddr @ankitsultana @tibrewalpratik17
The text was updated successfully, but these errors were encountered: