drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victoria Markman (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DRILL-1876) Implement concatenation operator ( || )
Date Fri, 24 Apr 2015 21:02:41 GMT

     [ https://issues.apache.org/jira/browse/DRILL-1876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Victoria Markman resolved DRILL-1876.
-------------------------------------
    Resolution: Fixed

> Implement concatenation operator ( || )
> ---------------------------------------
>
>                 Key: DRILL-1876
>                 URL: https://issues.apache.org/jira/browse/DRILL-1876
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 0.7.0
>            Reporter: Victoria Markman
>             Fix For: 0.8.0
>
>
> It is documented, but it does not work at all (DRILL-779) 
> Workaround exists: concat function
> As of version 0.7.0 (git.commit.id.abbrev=3b0ff5d)
> (1)
> 0: jdbc:drill:schema=dfs> select 'abc' || 'def' from cp.`tpch/nation.parquet`;
> Query failed: Query failed: Failure while running fragment.[ dc4727ed-4ac3-42bb-a60b-f8f370dd4fcf
on atsqa4-133.qa.lab:31010 ]
> [ dc4727ed-4ac3-42bb-a60b-f8f370dd4fcf on atsqa4-133.qa.lab:31010 ]
> Error: exception while executing query: Failure while executing query. (state=,code=0)
> (2)
> 0: jdbc:drill:schema=dfs> select n_name || 'xyz' from cp.`tpch/nation.parquet`;
> Query failed: Query failed: Unexpected exception during fragment initialization: Internal
error: pre-condition failed: SqlTypeUtil.sameNamedType(argTypes[0], argTypes[1])
> Error: exception while executing query: Failure while executing query. (state=,code=0)
> (3)
> 0: jdbc:drill:schema=dfs> select cast(n_nationkey as varchar(10)) || n_name from cp.`tpch/nation.parquet`;
> Query failed: Query failed: Unexpected exception during fragment initialization: Internal
error: pre-condition failed: SqlTypeUtil.sameNamedType(argTypes[0], argTypes[1])
> Error: exception while executing query: Failure while executing query. (state=,code=0)
> (4)
> 0: jdbc:drill:schema=dfs> select 'abc' || 'cde' from `test.json`;
> Query failed: Query failed: Failure while running fragment.[ 01194cdf-746c-45db-ae4e-014590bfbffd
on atsqa4-133.qa.lab:31010 ]
> [ 01194cdf-746c-45db-ae4e-014590bfbffd on atsqa4-133.qa.lab:31010 ]
> Error: exception while executing query: Failure while executing query. (state=,code=0)



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

Mime
View raw message