Skip to content

Commit d2b130f

Browse files
authored
fix: detect h3 column in arrow (#3230)
Signed-off-by: Xun Li <[email protected]>
1 parent 2aa2009 commit d2b130f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/processors/src/data-processor.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,10 @@ export function arrowSchemaToFields(
494494
type = keplerField.type;
495495
analyzerType = keplerField.analyzerType;
496496
format = keplerField.format;
497+
} else if (fieldTypeSuggestion === 'VARCHAR' && keplerField.type === ALL_FIELD_TYPES.h3) {
498+
// when kepler detected h3 column using getFieldsFromData(), set type to h3 and analyzerType to H3
499+
type = ALL_FIELD_TYPES.h3;
500+
analyzerType = keplerField.analyzerType;
497501
} else {
498502
// TODO should we use Kepler getFieldsFromData instead
499503
// of arrowDataTypeToFieldType for all fields?

0 commit comments

Comments
 (0)