Mohammad Tariq 2013-06-10, 21:59
It is not a valid URL if it does not have a scheme and can not be parsed.
SELECT if (column like 'http%', column, concat( 'http://', column) ) as
column might do what you need.
On Mon, Jun 10, 2013 at 5:59 PM, Mohammad Tariq <[EMAIL PROTECTED]> wrote:
> Hello list,
> I have a file stored in my HDFS which contains some urls. File
> looks like this :
> And i'm trying to get the hostnames from these urls using *parse_url*. It
> works fine except for the urls which do not contain any scheme. So when I
> hive> select parse_url(url, 'HOST') from url;
> it gives me :
> Could someone please point out the mistake? Many thanks.
> Warm Regards,
Mohammad Tariq 2013-06-10, 22:17