calcite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pengcheng Xiong <pxi...@apache.org>
Subject A question regarding the INTERVAL_DAY_TIME
Date Wed, 09 Dec 2015 22:05:06 GMT
Hi all,

    While I was trying to debug something in Hive, I found some code in
RexBuilder which makes me confused.

L527 it says

{code}

final long multiplier =

              literal.getType().getIntervalQualifier().getStartUnit()

                  .multiplier;
{code}

    I saw it was committed

commit 45b58ab07223cbb94c7cbbb9a1434a2b01a9497f
Author: julianhyde <julianhyde@gmail.com>
Date:   Tue Jan 7 14:57:17 2014 -0800

    Reformat org.eigenbase code.

    Could Julian or someone explain how this multiplier is used? It looks
to me that it is redundant. I do not need that multiplier and "value"
itself is enough. Thanks!

Best
Pengcheng

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message