Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This stable option is for testing your batch or ad-hoc scripts and converting them to Hive 2 syntax. Do not use this option for running your scripts in production.

The TD Python Client allows you to run queries that use Hive 2 if you use the following syntax in your Python code:

...

Code Block
linenumberstrue
import tdclient

with tdclient.Client() as td:
    td.create_schedule(
        "sched-example",
        {
            "type": "hive",
            "engine_version": "stable",
            "query": "select count(1) from www_access",
            "database": "sample_datasets",
            "cron": "0 13 * * *",
        },
    )

It’s recommended not to use engine_version tag at all and leave it to the default (unspecified) which allows TreasureData to switch the underlying engine if needed.