Impala 查询:return 仅来自所需列的前 x 个字符
Impala query: return only first x characters from a desired column
是否可以只查询 return 字段的前 100 个字符?
比如我原来的查询是:
select text from my_table
但现在我只想要 'text' 列的前 100 个字符,这可能吗?谢谢!
select Strleft(text,100) from my_table
http://www.cloudera.com/documentation/enterprise/5-8-x/topics/impala_string_functions.html
是否可以只查询 return 字段的前 100 个字符?
比如我原来的查询是:
select text from my_table
但现在我只想要 'text' 列的前 100 个字符,这可能吗?谢谢!
select Strleft(text,100) from my_table
http://www.cloudera.com/documentation/enterprise/5-8-x/topics/impala_string_functions.html