cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulo Motta (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-10428) cqlsh: Include sub-second precision in timestamps by default
Date Wed, 27 Jan 2016 13:34:39 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-10428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15119229#comment-15119229
] 

Paulo Motta commented on CASSANDRA-10428:
-----------------------------------------

Thanks, can you have a look on the dtests on Windows? It seems there are some problems with
the date format:

{noformat}
C:\Users\Paulo\Repositories\cassandra-dtest\cqlsh_tests [10428 +10 ~0 -0 !]> nosetests
.\cqlsh_tests.py:TestCqlsh.test_past_and_future_dates
nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
test_past_and_future_dates (cqlsh_tests.cqlsh_tests.TestCqlsh) ... Started: node1 with pid:
7036
FAIL
SUCCESS: The process with PID 7036 has been terminated.

======================================================================
FAIL: test_past_and_future_dates (cqlsh_tests.cqlsh_tests.TestCqlsh)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\Paulo\Repositories\cassandra-dtest\tools.py", line 253, in wrapped
    f(obj)
  File "C:\Users\Paulo\Repositories\cassandra-dtest\cqlsh_tests\cqlsh_tests.py", line 116,
in test_past_and_future_dates
    self.assertIn("2143-04-19 11:21:01.000000+0000", output)
AssertionError: '2143-04-19 11:21:01.000000+0000' not found in '\r\n id | value\r\n----+--------------------------\r\n
 1 | 2143-04-19 11:21:01+0000\r\n  2 | 1943-04-19 11:21:01+0000\r\n\r\n(2 rows)\r\n'
{noformat}

It's also happening with {{TestCqlsh.test_sub_second_precision}}.

> cqlsh: Include sub-second precision in timestamps by default
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-10428
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10428
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>         Environment: OSX 10.10.2
>            Reporter: Chandran Anjur Narasimhan
>            Assignee: Stefania
>              Labels: cqlsh
>             Fix For: 3.x
>
>
> Query with >= timestamp works. But the exact timestamp value is not working.
> {noformat}
> NCHAN-M-D0LZ:bin nchan$ ./cqlsh
> Connected to CCC Multi-Region Cassandra Cluster at <host>:<port>.
> [cqlsh 5.0.1 | Cassandra 2.1.7 | CQL spec 3.2.0 | Native protocol v3]
> Use HELP for help.
> cqlsh>
> {noformat}
> {panel:title=Schema|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1|bgColor=#FFFFCE}
> cqlsh:ccc> desc COLUMNFAMILY ez_task_result ;
> CREATE TABLE ccc.ez_task_result (
>     submissionid text,
>     ezid text,
>     name text,
>     time timestamp,
>     analyzed_index_root text,
>     ...
>     ...
>     PRIMARY KEY (submissionid, ezid, name, time)
> {panel}
> {panel:title=Working|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1|bgColor=#FFFFCE}
> cqlsh:ccc> select submissionid, ezid, name, time, state, status, translated_criteria_status
from ez_task_result where submissionid='760dd154670811e58c04005056bb6ff0' and ezid='760dd6de670811e594fc005056bb6ff0'
and name='run-sanities' and time>='2015-09-29 20:54:23-0700';
>  submissionid                     | ezid                             | name         |
time                     | state     | status      | translated_criteria_status
> ----------------------------------+----------------------------------+--------------+--------------------------+-----------+-------------+----------------------------
>  760dd154670811e58c04005056bb6ff0 | 760dd6de670811e594fc005056bb6ff0 | run-sanities |
2015-09-29 20:54:23-0700 | EXECUTING | IN_PROGRESS |       run-sanities started
> (1 rows)
> cqlsh:ccc>
> {panel}
> {panel:title=Not working|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1|bgColor=#FFFFCE}
> cqlsh:ccc> select submissionid, ezid, name, time, state, status, translated_criteria_status
from ez_task_result where submissionid='760dd154670811e58c04005056bb6ff0' and ezid='760dd6de670811e594fc005056bb6ff0'
and name='run-sanities' and time='2015-09-29 20:54:23-0700';
>  submissionid | ezid | name | time | analyzed_index_root | analyzed_log_path | clientid
| end_time | jenkins_path | log_file_path | path_available | path_to_task | required_for_overall_status
| start_time | state | status | translated_criteria_status | type
> --------------+------+------+------+---------------------+-------------------+----------+----------+--------------+---------------+----------------+--------------+-----------------------------+------------+-------+--------+----------------------------+------
> (0 rows)
> cqlsh:ccc>
> {panel}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message