gianm commented on pull request #10267:
URL: https://github.com/apache/druid/pull/10267#issuecomment-674098449


   > (1) sounds good to me.
   
   Hmm, thinking about this some more, it may be best to _not_ have it be an 
error. The risk of doing a sanity-check error is that something that worked 
before will stop working once you upgrade. It seems to me that any time someone 
had been specifying `dimensions` and `metrics` manually, but not including all 
input fields, they probably didn't do that intentionally. So this should be a 
bug fix that they appreciate, even though it's a behavioral change.
   
   > LGTM, for the (3) backwards compatibility item, what makes sense to me if 
we decide to feature flag this (I'm not sure that's worth doing, maybe enough 
to just show a clear error message and call this out in the release notes), 
would be to have the flag control whether we ignore (old mode) or respect the 
timestampSpec, and in the new mode we could have that __time with auto/millis 
format check.
   
   I think it makes sense to add a flag, because of the potential for confusion 
around why something suddenly broke in a subtle way after an upgrade. Usually 
(hopefully) cluster operators read the release notes, but not all users will 
read them, and the people submitting indexing tasks might not be the same 
people that operate the cluster.
   
   In new mode, I suggest we skip the check, because that will enable the full 
power of timestampSpec to be used (you could use it to switch a secondary 
timestamp to primary, for example).
   
   IMO the default should be new mode, but we should put something in the 
release notes that says if you have a bunch of users that might be relying on 
the old behavior, you can set this flag and get the old behavior back.
   
   I'd also consider adding a logged warning if the timestampSpec is anything 
other than `__time` + `auto` / `millis`, just to let people know that if they 
didn't intend to be in a special case, they should change their timestampSpec.
   
   What do you think?
   
   Separately — as a reviewer — would you prefer these changes to be made in 
this patch, or in a follow-up? I'm OK either way…


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to