-
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
Add Dictionary String (UTF8) type to String sqllogictests #12621
Conversation
I tried adding another test file for |
submit apache/arrow-rs#6456 for it. |
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 is great -- thank you @goldmedal
@@ -275,6 +279,17 @@ pub(crate) fn convert_schema_to_types(columns: &Fields) -> Vec<DFColumnType> { | |||
| DataType::Time32(_) | |||
| DataType::Time64(_) => DFColumnType::DateTime, | |||
DataType::Timestamp(_, _) => DFColumnType::Timestamp, | |||
DataType::Dictionary(key_type, value_type) => { | |||
if key_type.is_integer() { | |||
// mapping dictionary string types to Text |
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.
👍
pub fn cell_to_string( | ||
col: &ArrayRef, | ||
row: usize, | ||
data_type: &DataType, |
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.
Minor nit is that since this data type comes from col
it seems like we could keep the signature of this function the same and call let data_type = col.data_type()
in the function
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.
oops... my bad. It's my other experimental change. I forgot to roll back it. I'll recover it. Thanks for mentioning it.
# | ||
# common test for string-like functions and operators | ||
# | ||
include ./string_query.slt.part |
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 is really nice
🚀 |
* mapping DictionaryString to text * disable and move out the fail case for dictionary string * fix the schema for dictionary string * rollback the unnecessary change * cargo fmt
Which issue does this PR close?
Part of #12415 .
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Add the test for dictionary Utf8
Are there any user-facing changes?
no