-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Web console: use new sampler features #14017
Conversation
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.
thanks 🤘
// const ingestionSpec: IngestionSpec = { | ||
// type: 'index_parallel', | ||
// spec: { |
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.
these commented blocks supposed to be here?
{ type: 'json', name: 'spend', multiValueHandling: 'SORTED_ARRAY', createBitmapIndex: true }, | ||
{ type: 'string', name: 'id', multiValueHandling: 'SORTED_ARRAY', createBitmapIndex: true }, | ||
{ type: 'json', name: 'tags', multiValueHandling: 'SORTED_ARRAY', createBitmapIndex: true }, | ||
{ type: 'json', name: 'nums', multiValueHandling: 'SORTED_ARRAY', createBitmapIndex: true }, | ||
], | ||
physicalDimensions: [ | ||
{ type: 'json', name: 'user', multiValueHandling: 'SORTED_ARRAY', createBitmapIndex: true }, | ||
{ | ||
type: 'json', | ||
name: 'followers', | ||
multiValueHandling: 'SORTED_ARRAY', | ||
createBitmapIndex: true, | ||
}, | ||
{ type: 'json', name: 'spend', multiValueHandling: 'SORTED_ARRAY', createBitmapIndex: true }, | ||
{ type: 'json', name: 'id', multiValueHandling: 'SORTED_ARRAY', createBitmapIndex: true }, | ||
{ type: 'json', name: 'tags', multiValueHandling: 'SORTED_ARRAY', createBitmapIndex: true }, | ||
{ type: 'json', name: 'nums', multiValueHandling: 'SORTED_ARRAY', createBitmapIndex: true }, |
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.
i suppose I changed this underneath you in #14014, but it might be nice to update this at some point (also I have a bug to fix here since right now the sampler will show the new 'auto' in the physical schema but still have 'json' in the logical schema, so i think its ok to hold off on updating this)
export function guessDimensionsFromSampleResponse(sampleResponse: SampleResponse): DimensionSpec[] { | ||
const { logicalDimensions, physicalDimensions, data } = sampleResponse; | ||
return logicalDimensions.map(d => { | ||
// Boolean column are currently reported as "long" so let's turn them into "string" |
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.
im still looking into this, since technically looking at stuff it looks like it should be dependent on the value of druid.expressions.useStrictBooleans
. Additionally, 'long' really probably is better when using 'auto', since longs do have indexes in this mode, so im a bit conflicted about this staying like this long term, but i think its fine at least until we make 'auto' the default schemaless (or add indexes to classic 'long' schema)
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.
the reason it is picking string is that if you pick long then it forces the true
/ false
in the input to null
(instead of 1
/ 0
)
This is the UI part that follows, #13653 and #13900
This simplifies the data loader code by using schema discovery and also adds support for the Kafka input format
This PR also:
headerLabelPrefix
withheaderColumnPrefix
(that one tripped me up)