Skip to content
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

How can i load data without timestamp? please provide any solution if it is there. #6196

Closed
ranjan321 opened this issue Aug 20, 2018 · 4 comments

Comments

@ranjan321
Copy link

Loading json which is not having any timestamp field.but not able to load as it is throwing exception timestampSpec is not available.

@QiuMM
Copy link
Member

QiuMM commented Aug 20, 2018

Data load to Druid must have a timestamp field, you can preprocess your data to add one.

@ghulands
Copy link

@QiuMM that is not accurate. If you have data that is partitioned and are ingesting it based on that partitioning you don't have to have a column in that data to contain an actual timestamp. You can specify the timestamp spec as follows

"timestampSpec": {
"format": "yyyy-MM-dd",
"column": "ts",
"missingValue": "2018-08-20"
}

ts does not need to exist.

Hope that helps @ranjan321

@QiuMM
Copy link
Member

QiuMM commented Aug 21, 2018

@ghulands Got it, thanks for your reminder.

@ranjan321
Copy link
Author

@ghulands Thanks for your input..it is perfectly working fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants