Module Import alias Import alias Import alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad keyword Str keyword Str keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call NameLoad Str Expr Call NameLoad Str Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore BinOpMod Str Dict Str NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call NameLoad ListLoad Dict Str Str Str Str AttributeLoad NameLoad attr Expr Call NameLoad ListLoad Dict Str Str Str Str AttributeLoad NameLoad attr Expr Call NameLoad ListLoad Dict Str Str Str Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad CompareIn Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad Expr Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore ListLoad Dict Str Str Str Str Dict Str Str Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad Assign NameStore Call NameLoad GeneratorExp NameLoad comprehension NameStore NameLoad CompareEq SubscriptLoad NameLoad Index Str Str NameLoad Expr Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Assign NameStore ListLoad Dict Str Str Str Str Str Str NameLoad ListLoad Str Str Str Str Dict Str Str Str Str Str Str NameLoad ListLoad Str Str Str Str Dict Str Str Str Str Str Str Str NameLoad ListLoad Dict Str Str Str Str Str Str Str Str ListLoad Str Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call NameLoad Str Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr BinOpMod Str Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num keyword Str keyword Str keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str ListLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Dict Str Str Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Num SubscriptLoad NameLoad Index Str NameLoad Expr Call NameLoad Num SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad Expr Call NameLoad Num SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad Expr Call NameLoad NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad Expr Call NameLoad Dict Str Str Num Num SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad Expr Call NameLoad Dict Str Str Num Num SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str ListLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Dict Str Str Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Num SubscriptLoad NameLoad Index Str NameLoad Expr Call NameLoad Num SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad Expr Call NameLoad Num SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad Expr Call NameLoad NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad Expr Call NameLoad Dict Str Str Num Num SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad Expr Call NameLoad Dict Str Str Num Num SubscriptLoad SubscriptLoad NameLoad Index Str Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Num SubscriptLoad NameLoad Index Str NameLoad Expr Call NameLoad CompareIn Str SubscriptLoad NameLoad Index Str NameLoad Expr Call NameLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str Str Str Str Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Num SubscriptLoad NameLoad Index Str NameLoad Expr Call NameLoad CompareIn Str NameLoad Expr Call NameLoad CompareIn Str NameLoad Expr Call NameLoad CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Dict Str Str Str Str Str Str Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad Num SubscriptLoad NameLoad Index Str NameLoad Expr Call NameLoad CompareIn Str NameLoad Expr Call NameLoad ListLoad Str SubscriptLoad NameLoad Index Str Expr Call NameLoad CompareIn Str NameLoad Expr Call NameLoad CompareGt Call NameLoad SubscriptLoad NameLoad Index Str Num decorator_list decorator_list
N/A N/A json N/A logging N/A re nose.tools assert_equal assert_true assert_false django.contrib.auth.models User django.core.urlresolvers reverse desktop.lib.django_test_util make_logged_in_client desktop.lib.test_utils add_to_group grant_access desktop.models Document2 notebook.connectors.hiveserver2 HS2Api beeswax.server dbms beeswax.test_base BeeswaxSampleProvider get_query_server_config N/A LOG N/A N/A logging getLogger __name__ TestHiveserver2Api N/A object N/A setUp N/A N/A self N/A N/A N/A N/A self client N/A make_logged_in_client username test groupname test recreate False is_superuser False N/A N/A self user N/A N/A N/A User objects get username test N/A N/A add_to_group test N/A N/A grant_access test test notebook N/A N/A self db N/A N/A dbms get N/A self user N/A get_query_server_config N/A N/A self api N/A HS2Api N/A self user N/A test_prepare_hql_query N/A N/A self N/A N/A N/A statement SELECT myUpper(description) FROM sample_07 LIMIT 10 N/A snippet_json N/A 
        {
            "status": "running",
            "database": "default",
            "properties": {
                "files": [],
                "functions": [{
                    "class_name": "org.hue.udf.MyUpper",
                    "name": "myUpper"
                }],
                "settings": []
            },
            "result": {
                "handle": {
                    "log_context": null,
                    "statements_count": 1,
                    "statement_id": 0,
                    "has_more_statements": false,
                    "secret": "UVZXF/qtTQumumz0Q8tNDQ==",
                    "has_result_set": true,
                    "operation_type": 0,
                    "modified_row_count": null,
                    "guid": "ZxOd4IjqTeK1PUTq+MdcDA=="
                },
                "type": "table",
                "id": "ae81b805-dcf1-9692-0452-797681e997ed"
            },
            "statement": "%(statement)s",
            "type": "hive",
            "id": "9b50e364-f7b2-303d-e924-db8b0bd9866d"
        }
     N/A statement statement N/A session_json 
            {
                "type": "hive",
                "properties": [
                    {
                        "multiple": true,
                        "value": [
                            {
                                "path": "/user/test/myudfs.jar",
                                "type": "jar"
                            }
                        ],
                        "nice_name": "Files",
                        "key": "files",
                        "help_text": "Add one or more files, jars, or archives to the list of resources.",
                        "type": "hdfs-files"
                    },
                    {
                        "multiple": true,
                        "value": [
                            {
                                "class_name": "org.hue.udf.MyUpper",
                                "name": "myUpper"
                            }
                        ],
                        "nice_name": "Functions",
                        "key": "functions",
                        "help_text": "Add one or more registered UDFs (requires function name and fully-qualified class name).",
                        "type": "functions"
                    },
                    {
                        "multiple": true,
                        "value": [
                            {
                                "value": "spark",
                                "key": "hive.execution.engine"
                            }
                        ],
                        "nice_name": "Settings",
                        "key": "settings",
                        "help_text": "Hive and Hadoop configuration properties.",
                        "type": "settings",
                        "options": [
                            "hive.map.aggr",
                            "hive.exec.compress.output",
                            "hive.exec.parallel",
                            "hive.execution.engine",
                            "mapreduce.job.queuename"
                        ]
                    }
                ],
                "id": 30
            }
     N/A snippet N/A N/A json loads snippet_json N/A session N/A N/A json loads session_json N/A hql_query N/A N/A N/A self api _prepare_hql_query snippet statement session N/A N/A assert_equal N/A N/A key value hive.execution.engine spark N/A hql_query settings N/A N/A assert_equal N/A N/A type path jar /user/test/myudfs.jar N/A hql_query file_resources N/A N/A assert_equal N/A N/A name class_name myUpper org.hue.udf.MyUpper N/A hql_query functions N/A config_statements N/A N/A ,  join N/A N/A hql_query get_configuration_statements N/A pattern N/A N/A re compile ADD JAR hdfs://[A-Za-z0-9.:_-]+/user/test/myudfs.jar N/A N/A assert_true N/A N/A pattern search config_statements config_statements N/A N/A assert_true N/A CREATE TEMPORARY FUNCTION myUpper AS 'org.hue.udf.MyUpper' config_statements config_statements N/A test_upgrade_properties N/A N/A self N/A N/A N/A properties None N/A upgraded_props N/A N/A N/A self api upgrade_properties lang hive properties properties N/A N/A assert_equal upgraded_props N/A N/A N/A self api get_properties lang hive N/A properties N/A N/A key value hive.execution.engine mr N/A key value hive.exec.compress.output False N/A upgraded_props N/A N/A N/A self api upgrade_properties lang hive properties properties N/A settings N/A next N/A prop N/A prop upgraded_props N/A N/A prop N/A key settings None N/A N/A assert_equal N/A settings N/A value properties N/A properties N/A N/A multiple value nice_name key help_text type True N/A Files files Add one or more files, jars, or archives to the list of resources. hdfs-files N/A multiple value nice_name key help_text type True N/A Functions functions Add one or more registered UDFs (requires function name and fully-qualified class name). functions N/A multiple value nice_name key help_text type options True N/A N/A key value hive.execution.engine spark Settings settings Hive and Hadoop configuration properties. settings N/A hive.map.aggr hive.exec.compress.output hive.exec.parallel hive.execution.engine mapreduce.job.queuename N/A upgraded_props N/A N/A N/A self api upgrade_properties lang hive properties properties N/A N/A assert_equal upgraded_props properties N/A N/A TestHiveserver2ApiWithHadoop N/A BeeswaxSampleProvider N/A setup_class N/A N/A cls N/A N/A N/A N/A N/A N/A super TestHiveserver2ApiWithHadoop cls setup_class load_data False N/A classmethod setUp N/A N/A self N/A N/A N/A N/A N/A N/A self client post /beeswax/install_examples N/A N/A self user N/A N/A N/A User objects get username test N/A N/A grant_access test test notebook N/A N/A self db N/A N/A dbms get N/A self user N/A get_query_server_config N/A N/A N/A N/A N/A self cluster fs do_as_user test N/A N/A N/A self cluster fs create_home_dir /user/test N/A N/A self api N/A HS2Api N/A self user N/A N/A self notebook_json 
      {
        "uuid": "f5d6394d-364f-56e8-6dd3-b1c5a4738c52",
        "id": 1234,
        "sessions": [{"type": "hive", "properties": [], "id": "1234"}],
        "type": "query-hive",
        "name": "Test Hiveserver2 Editor",
        "isSaved": false,
        "parentUuid": null
      }
     N/A N/A self statement SELECT description, salary FROM sample_07 WHERE (sample_07.salary > 100000) ORDER BY salary DESC LIMIT 1000 N/A N/A self snippet_json N/A 
      {
          "status": "running",
          "database": "%(database)s",
          "id": "d70d31ee-a62a-4854-b2b1-b852f6a390f5",
          "result": {
              "type": "table",
              "handle": {},
              "id": "ca11fcb1-11a5-f534-8200-050c8e1e57e3"
          },
          "statement": "%(statement)s",
          "type": "hive",
          "properties": {
              "files": [],
              "functions": [],
              "settings": []
          }
      }
     N/A database statement N/A self db_name N/A self statement N/A N/A doc created N/A N/A N/A Document2 objects get_or_create id 1234 name Test Hive Query type query-hive owner N/A self user is_history True data N/A self notebook_json N/A test_get_current_statement N/A N/A self N/A N/A N/A multi_statement SELECT description, salary FROM sample_07 LIMIT 20;\r\nSELECT AVG(salary) FROM sample_07; N/A snippet_json N/A N/A json loads N/A 
      {
          "status": "running",
          "database": "default",
          "id": "d70d31ee-a62a-4854-b2b1-b852f6a390f5",
          "result": {
              "type": "table",
              "handle": {},
              "id": "ca11fcb1-11a5-f534-8200-050c8e1e57e3"
          },
          "statement": "%(statement)s",
          "type": "hive",
          "properties": {
              "files": [],
              "functions": [],
              "settings": []
          }
      }
     N/A statement multi_statement N/A notebook_json N/A N/A json loads N/A self notebook_json N/A N/A notebook_json N/A snippets N/A snippet_json N/A response N/A N/A N/A self client post N/A reverse notebook:execute N/A notebook snippet N/A N/A json dumps notebook_json N/A N/A json dumps snippet_json N/A data N/A N/A json loads N/A response content N/A N/A assert_equal 0 N/A data N/A status data N/A N/A assert_equal 0 N/A N/A data N/A handle N/A statement_id data N/A N/A assert_equal 2 N/A N/A data N/A handle N/A statements_count data N/A N/A assert_equal True N/A N/A data N/A handle N/A has_more_statements data N/A N/A assert_equal N/A row column 0 0 N/A N/A data N/A handle N/A start data N/A N/A assert_equal N/A row column 0 51 N/A N/A data N/A handle N/A end data N/A snippet_json N/A N/A json loads N/A 
      {
          "status": "running",
          "database": "default",
          "id": "d70d31ee-a62a-4854-b2b1-b852f6a390f5",
          "result": {
              "type": "table",
              "handle": {
                "statement_id": 0,
                "statements_count": 2,
                "has_more_statements": true
              },
              "id": "ca11fcb1-11a5-f534-8200-050c8e1e57e3"
          },
          "statement": "%(statement)s",
          "type": "hive",
          "properties": {
              "files": [],
              "functions": [],
              "settings": []
          }
      }
     N/A statement multi_statement N/A notebook_json N/A N/A json loads N/A self notebook_json N/A N/A notebook_json N/A snippets N/A snippet_json N/A response N/A N/A N/A self client post N/A reverse notebook:execute N/A notebook snippet N/A N/A json dumps notebook_json N/A N/A json dumps snippet_json N/A data N/A N/A json loads N/A response content N/A N/A assert_equal 0 N/A data N/A status data N/A N/A assert_equal 1 N/A N/A data N/A handle N/A statement_id data N/A N/A assert_equal 2 N/A N/A data N/A handle N/A statements_count data N/A N/A assert_equal False N/A N/A data N/A handle N/A has_more_statements data N/A N/A assert_equal N/A row column 1 0 N/A N/A data N/A handle N/A start data N/A N/A assert_equal N/A row column 1 32 N/A N/A data N/A handle N/A end data N/A test_explain N/A N/A self N/A N/A N/A response N/A N/A N/A self client post N/A reverse notebook:explain N/A notebook snippet N/A self notebook_json N/A self snippet_json N/A data N/A N/A json loads N/A response content N/A N/A assert_equal 0 N/A data N/A status data N/A N/A assert_true N/A STAGE DEPENDENCIES N/A data N/A explanation data N/A N/A assert_equal N/A self statement N/A data N/A statement data N/A test_get_sample N/A N/A self N/A N/A N/A response N/A N/A N/A self client post N/A reverse notebook:api_sample_data kwargs N/A database table default sample_07 N/A notebook snippet N/A self notebook_json N/A self snippet_json N/A data N/A N/A json loads N/A response content N/A N/A assert_equal 0 N/A data N/A status data N/A N/A assert_true N/A headers data N/A N/A assert_true N/A rows data N/A N/A assert_true N/A N/A len N/A data N/A rows 0 N/A response N/A N/A N/A self client post N/A reverse notebook:api_sample_data_column kwargs N/A database table column default sample_07 code N/A notebook snippet N/A self notebook_json N/A self snippet_json N/A data N/A N/A json loads N/A response content N/A N/A assert_equal 0 N/A data N/A status data N/A N/A assert_true N/A headers data N/A N/A assert_equal N/A code N/A data N/A headers N/A N/A assert_true N/A rows data N/A N/A assert_true N/A N/A len N/A data N/A rows 0 N/A N/A