MCPcopy Create free account
hub / github.com/apache/impala / build_query

Method build_query

tests/util/test_file_parser.py:42–45  ·  view source on GitHub ↗

Build a query by stripping comments and trailing newlines and semi-colons.

(query_section_text)

Source from the content-addressed store, hash-verified

40class QueryTestSectionReader(object):
41 @staticmethod
42 def build_query(query_section_text):
43 """Build a query by stripping comments and trailing newlines and semi-colons."""
44 query_section_text = remove_comments(query_section_text)
45 return query_section_text.rstrip("\n;")
46
47 @staticmethod
48 def get_table_name_components(table_format, table_name, scale_factor=''):

Callers 4

_build_queryMethod · 0.80
__init__Method · 0.80
run_test_caseMethod · 0.80

Calls 1

remove_commentsFunction · 0.85

Tested by

no test coverage detected