-
Notifications
You must be signed in to change notification settings - Fork 176
Add permissive mode setting #4611
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Tomoyuki Morita <[email protected]>
| final RelDataType relKey = TYPE_FACTORY.createSqlType(SqlTypeName.VARCHAR); | ||
| return TYPE_FACTORY.createMapType( | ||
| relKey, TYPE_FACTORY.createSqlType(SqlTypeName.BINARY), nullable); | ||
| relKey, TYPE_FACTORY.createSqlType(SqlTypeName.ANY), nullable); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does #3459 solved?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| schema("lastname", "string"), | ||
| schema("department", "string"), | ||
| schema("salary", "int")); | ||
| verifyDataRows(result, rows("John", "Doe", "Engineering", 75000)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is explain results?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add explain validation in the tests.
| Table getTable(DataSourceSchemaName dataSourceSchemaName, String tableName); | ||
|
|
||
| /** Get {@link Table} which allows permissive mode or not. */ | ||
| default Table getPermissiveAwareTable( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getPermissiveAwareTable is temporay change? if yes, add TODO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be kept to avoid permissive is applied to SQL.
(Only Calcite PPL implementation will use this method to allow permissive mode)
|
|
||
| try { | ||
| for (Map.Entry<String, ExprValue> entry : value.tupleValue().entrySet()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only the top level <k, v> are extracted? what if field name is field.f1.f2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, do we want to flatten nested data?
Signed-off-by: Tomoyuki Morita <[email protected]>
Signed-off-by: Tomoyuki Morita <[email protected]>
Description
_MAPfield typed asMAP<String, Object>(dynamic fields).Related Issues
Permissive mode RFC: #4349
Dynamic fields RFC: #4433
Check List
--signoffor-s.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.