-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Use index based Table->File columns mapping. #6531
Conversation
✅ Deploy Preview for meta-velox canceled.
|
This pull request was exported from Phabricator. Differential Revision: D49117889 |
63ffc47
to
ccb8949
Compare
Summary: Presto by default uses index based column mapping. It has a connector config prop "hive.orc.use-column-names" to use names. Make Velox use index based column mapping by default. For this we simply rename fields in the file schema using table schema. We also check the type compatibility of the fields. Underneath the code still uses the name mapping, but since we adjusted field names in the file schema using indices, it is equivalent to index mapping. In the future the internal code might hande this on its own and this workaround with column renaming might not be needed. If "hive.orc.use-column-names" is passed - we don't perform renaming and work as before. GH issue: facebookincubator#6466 Differential Revision: D49117889
This pull request was exported from Phabricator. Differential Revision: D49117889 |
ccb8949
to
7bf4b78
Compare
Summary: Presto by default uses index based column mapping. It has a connector config prop "hive.orc.use-column-names" to use names. Make Velox use index based column mapping by default. For this we simply rename fields in the file schema using table schema. We also check the type compatibility of the fields. Underneath the code still uses the name mapping, but since we adjusted field names in the file schema using indices, it is equivalent to index mapping. In the future the internal code might hande this on its own and this workaround with column renaming might not be needed. If "hive.orc.use-column-names" is passed - we don't perform renaming and work as before. GH issue: facebookincubator#6466 Differential Revision: D49117889
This pull request was exported from Phabricator. Differential Revision: D49117889 |
Summary: Presto by default uses index based column mapping. It has a connector config prop "hive.orc.use-column-names" to use names. Make Velox use index based column mapping by default. For this we simply rename fields in the file schema using table schema. We also check the type compatibility of the fields. Underneath the code still uses the name mapping, but since we adjusted field names in the file schema using indices, it is equivalent to index mapping. In the future the internal code might hande this on its own and this workaround with column renaming might not be needed. If "hive.orc.use-column-names" is passed - we don't perform renaming and work as before. GH issue: facebookincubator#6466 Differential Revision: D49117889
7bf4b78
to
1225e82
Compare
This pull request was exported from Phabricator. Differential Revision: D49117889 |
1225e82
to
235e6b4
Compare
Summary: Presto by default uses index based column mapping. It has a connector config prop "hive.orc.use-column-names" to use names. Make Velox use index based column mapping by default. For this we simply rename fields in the file schema using table schema. We also check the type compatibility of the fields. Underneath the code still uses the name mapping, but since we adjusted field names in the file schema using indices, it is equivalent to index mapping. In the future the internal code might hande this on its own and this workaround with column renaming might not be needed. If "hive.orc.use-column-names" is passed - we don't perform renaming and work as before. GH issue: facebookincubator#6466 Reviewed By: Yuhta Differential Revision: D49117889
This pull request was exported from Phabricator. Differential Revision: D49117889 |
Summary: Presto by default uses index based column mapping. It has a connector config prop "hive.orc.use-column-names" to use names. Make Velox use index based column mapping by default. For this we simply rename fields in the file schema using table schema. We also check the type compatibility of the fields. Underneath the code still uses the name mapping, but since we adjusted field names in the file schema using indices, it is equivalent to index mapping. In the future the internal code might hande this on its own and this workaround with column renaming might not be needed. If "hive.orc.use-column-names" is passed - we don't perform renaming and work as before. GH issue: facebookincubator#6466 Reviewed By: Yuhta Differential Revision: D49117889
235e6b4
to
a259308
Compare
Summary: Presto by default uses index based column mapping. It has a connector config prop "hive.orc.use-column-names" to use names. Make Velox use index based column mapping by default. For this we simply rename fields in the file schema using table schema. We also check the type compatibility of the fields. Underneath the code still uses the name mapping, but since we adjusted field names in the file schema using indices, it is equivalent to index mapping. In the future the internal code might hande this on its own and this workaround with column renaming might not be needed. If "hive.orc.use-column-names" is passed - we don't perform renaming and work as before. GH issue: facebookincubator#6466 Reviewed By: Yuhta Differential Revision: D49117889
a259308
to
06516a6
Compare
This pull request was exported from Phabricator. Differential Revision: D49117889 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D49117889 |
Summary: Addressing lints and comments from D49117889 (facebookincubator#6531). - Using TypePtr instead of std::shared_ptr<const Type> in some places. - Throwing for bad indices in ArrayType::nameOf() and MapType::nameOf(). - Moving TypePtr in some places instead of copying. - Fixing 'use after move'. Reviewed By: Yuhta Differential Revision: D49291987 fbshipit-source-id: 3daa876c1c186f09bd1abd2c7088bac5096f9d26
This pull request has been merged in 580e81a. |
Summary: Addressing lints and comments from D49117889 (facebookincubator#6531). - Using TypePtr instead of std::shared_ptr<const Type> in some places. - Throwing for bad indices in ArrayType::nameOf() and MapType::nameOf(). - Moving TypePtr in some places instead of copying. - Fixing 'use after move'. Reviewed By: Yuhta Differential Revision: D49291987
Summary: Addressing lints and comments from D49117889 (facebookincubator#6531). - Using TypePtr instead of std::shared_ptr<const Type> in some places. - Throwing for bad indices in ArrayType::nameOf() and MapType::nameOf(). - Moving TypePtr in some places instead of copying. - Fixing 'use after move'. Reviewed By: Yuhta Differential Revision: D49291987
Conbench analyzed the 1 benchmark run on commit There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
Summary: Pull Request resolved: #6579 Addressing lints and comments from D49117889 (#6531). - Using TypePtr instead of std::shared_ptr<const Type> in some places. - Throwing for bad indices in ArrayType::nameOf() and MapType::nameOf(). - Moving TypePtr in some places instead of copying. - Fixing 'use after move'. Reviewed By: Yuhta Differential Revision: D49291987 fbshipit-source-id: fbc92b32c0db9b3b284fa9c683fa78d7feeb43c3
Summary: Pull Request resolved: facebookincubator#6531 Presto by default uses index based column mapping. It has a connector config prop "hive.orc.use-column-names" to use names. Make Velox use index based column mapping by default. For this we simply rename fields in the file schema using table schema. We also check the type compatibility of the fields. Underneath the code still uses the name mapping, but since we adjusted field names in the file schema using indices, it is equivalent to index mapping. In the future the internal code might hande this on its own and this workaround with column renaming might not be needed. If "hive.orc.use-column-names" is passed - we don't perform renaming and work as before. GH issue: facebookincubator#6466 Reviewed By: Yuhta Differential Revision: D49117889 fbshipit-source-id: 423d94cb892003cf0ec705a936aac46869835f17
Summary: Pull Request resolved: facebookincubator#6579 Addressing lints and comments from D49117889 (facebookincubator#6531). - Using TypePtr instead of std::shared_ptr<const Type> in some places. - Throwing for bad indices in ArrayType::nameOf() and MapType::nameOf(). - Moving TypePtr in some places instead of copying. - Fixing 'use after move'. Reviewed By: Yuhta Differential Revision: D49291987 fbshipit-source-id: fbc92b32c0db9b3b284fa9c683fa78d7feeb43c3
Summary: Pull Request resolved: facebookincubator#6531 Presto by default uses index based column mapping. It has a connector config prop "hive.orc.use-column-names" to use names. Make Velox use index based column mapping by default. For this we simply rename fields in the file schema using table schema. We also check the type compatibility of the fields. Underneath the code still uses the name mapping, but since we adjusted field names in the file schema using indices, it is equivalent to index mapping. In the future the internal code might hande this on its own and this workaround with column renaming might not be needed. If "hive.orc.use-column-names" is passed - we don't perform renaming and work as before. GH issue: facebookincubator#6466 Reviewed By: Yuhta Differential Revision: D49117889 fbshipit-source-id: 423d94cb892003cf0ec705a936aac46869835f17
Summary: Pull Request resolved: facebookincubator#6579 Addressing lints and comments from D49117889 (facebookincubator#6531). - Using TypePtr instead of std::shared_ptr<const Type> in some places. - Throwing for bad indices in ArrayType::nameOf() and MapType::nameOf(). - Moving TypePtr in some places instead of copying. - Fixing 'use after move'. Reviewed By: Yuhta Differential Revision: D49291987 fbshipit-source-id: fbc92b32c0db9b3b284fa9c683fa78d7feeb43c3
Summary: Pull Request resolved: facebookincubator#6531 Presto by default uses index based column mapping. It has a connector config prop "hive.orc.use-column-names" to use names. Make Velox use index based column mapping by default. For this we simply rename fields in the file schema using table schema. We also check the type compatibility of the fields. Underneath the code still uses the name mapping, but since we adjusted field names in the file schema using indices, it is equivalent to index mapping. In the future the internal code might hande this on its own and this workaround with column renaming might not be needed. If "hive.orc.use-column-names" is passed - we don't perform renaming and work as before. GH issue: facebookincubator#6466 Reviewed By: Yuhta Differential Revision: D49117889 fbshipit-source-id: 423d94cb892003cf0ec705a936aac46869835f17
Summary: Pull Request resolved: facebookincubator#6579 Addressing lints and comments from D49117889 (facebookincubator#6531). - Using TypePtr instead of std::shared_ptr<const Type> in some places. - Throwing for bad indices in ArrayType::nameOf() and MapType::nameOf(). - Moving TypePtr in some places instead of copying. - Fixing 'use after move'. Reviewed By: Yuhta Differential Revision: D49291987 fbshipit-source-id: fbc92b32c0db9b3b284fa9c683fa78d7feeb43c3
Summary: Pull Request resolved: facebookincubator#6531 Presto by default uses index based column mapping. It has a connector config prop "hive.orc.use-column-names" to use names. Make Velox use index based column mapping by default. For this we simply rename fields in the file schema using table schema. We also check the type compatibility of the fields. Underneath the code still uses the name mapping, but since we adjusted field names in the file schema using indices, it is equivalent to index mapping. In the future the internal code might hande this on its own and this workaround with column renaming might not be needed. If "hive.orc.use-column-names" is passed - we don't perform renaming and work as before. GH issue: facebookincubator#6466 Reviewed By: Yuhta Differential Revision: D49117889 fbshipit-source-id: 423d94cb892003cf0ec705a936aac46869835f17
Summary: Pull Request resolved: facebookincubator#6579 Addressing lints and comments from D49117889 (facebookincubator#6531). - Using TypePtr instead of std::shared_ptr<const Type> in some places. - Throwing for bad indices in ArrayType::nameOf() and MapType::nameOf(). - Moving TypePtr in some places instead of copying. - Fixing 'use after move'. Reviewed By: Yuhta Differential Revision: D49291987 fbshipit-source-id: fbc92b32c0db9b3b284fa9c683fa78d7feeb43c3
Summary:
Presto by default uses index based column mapping.
It has a connector config prop "hive.orc.use-column-names" to use names.
Make Velox use index based column mapping by default.
For this we simply rename fields in the file schema using table schema.
We also check the type compatibility of the fields.
Underneath the code still uses the name mapping, but since we adjusted
field names in the file schema using indices, it is equivalent to index mapping.
In the future the internal code might hande this on its own and this workaround
with column renaming might not be needed.
If "hive.orc.use-column-names" is passed - we don't perform renaming and
work as before.
GH issue: #6466
Differential Revision: D49117889