Attila Jeges has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/14291 )

Change subject: IMPALA-8704: ISO:SQL:2016 datetime patterns - Milestone 2
......................................................................


Patch Set 14:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/14291/14/be/src/runtime/datetime-iso-sql-format-tokenizer.cc
File be/src/runtime/datetime-iso-sql-format-tokenizer.cc:

http://gerrit.cloudera.org:8080/#/c/14291/14/be/src/runtime/datetime-iso-sql-format-tokenizer.cc@237
PS14, Line 237: DCHECK(*current_pos == dt_ctx_->fmt);
> I have to pass **current_pos into this function as a param because the func
I meant it like this:

char* IsoSqlFormatTokenizer::ProcessFXModifier() const {
  DCHECK(dt_ctx_->fmt != nullptr);
  const char* current_pos = dt_ctx_->fmt;
  if (strncmp(current_pos, "FX", 2) == 0) {
    dt_ctx_->fx_modifier = true;
    current_pos += 2;
  }
  return current_pos;
}

and then in L86 you can call it like this:
current_pos = ProcessFXModifier()



--
To view, visit http://gerrit.cloudera.org:8080/14291
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I30d2f6656054371476aaa8bd0d51f572b9369855
Gerrit-Change-Number: 14291
Gerrit-PatchSet: 14
Gerrit-Owner: Gabor Kaszab <[email protected]>
Gerrit-Reviewer: Attila Jeges <[email protected]>
Gerrit-Reviewer: Gabor Kaszab <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Comment-Date: Wed, 06 Nov 2019 12:45:34 +0000
Gerrit-HasComments: Yes

Reply via email to