Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 367 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 367 Bytes

HiveParser

Hive Query Language Parser to JSON

Basic usage

import hiveparser

sql_str = "SELECT * FROM teste;"
path_file = "c:\path\for\file"

#String Input
hiveparser.parse(sql_str)

#Path for sql file input
hiveparser.parse(path_file)

#TextIOWrapper input
with open(path_file) as arq_sql:
	hiveparser.parse(arq_sql)