tinet-data-foundry-cli 0.1.8__tar.gz → 0.1.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (19) hide show
  1. {tinet_data_foundry_cli-0.1.8 → tinet_data_foundry_cli-0.1.9}/PKG-INFO +2 -2
  2. {tinet_data_foundry_cli-0.1.8 → tinet_data_foundry_cli-0.1.9}/README.md +1 -1
  3. {tinet_data_foundry_cli-0.1.8 → tinet_data_foundry_cli-0.1.9}/pyproject.toml +1 -1
  4. tinet_data_foundry_cli-0.1.9/src/tinet_data_foundry_cli/__init__.py +1 -0
  5. {tinet_data_foundry_cli-0.1.8 → tinet_data_foundry_cli-0.1.9}/src/tinet_data_foundry_cli/cli.py +1 -2
  6. {tinet_data_foundry_cli-0.1.8 → tinet_data_foundry_cli-0.1.9}/src/tinet_data_foundry_cli.egg-info/PKG-INFO +2 -2
  7. {tinet_data_foundry_cli-0.1.8 → tinet_data_foundry_cli-0.1.9}/tests/test_cli.py +2 -1
  8. tinet_data_foundry_cli-0.1.8/src/tinet_data_foundry_cli/__init__.py +0 -1
  9. {tinet_data_foundry_cli-0.1.8 → tinet_data_foundry_cli-0.1.9}/setup.cfg +0 -0
  10. {tinet_data_foundry_cli-0.1.8 → tinet_data_foundry_cli-0.1.9}/src/tinet_data_foundry_cli/__main__.py +0 -0
  11. {tinet_data_foundry_cli-0.1.8 → tinet_data_foundry_cli-0.1.9}/src/tinet_data_foundry_cli/auth.py +0 -0
  12. {tinet_data_foundry_cli-0.1.8 → tinet_data_foundry_cli-0.1.9}/src/tinet_data_foundry_cli/client.py +0 -0
  13. {tinet_data_foundry_cli-0.1.8 → tinet_data_foundry_cli-0.1.9}/src/tinet_data_foundry_cli/docs.py +0 -0
  14. {tinet_data_foundry_cli-0.1.8 → tinet_data_foundry_cli-0.1.9}/src/tinet_data_foundry_cli.egg-info/SOURCES.txt +0 -0
  15. {tinet_data_foundry_cli-0.1.8 → tinet_data_foundry_cli-0.1.9}/src/tinet_data_foundry_cli.egg-info/dependency_links.txt +0 -0
  16. {tinet_data_foundry_cli-0.1.8 → tinet_data_foundry_cli-0.1.9}/src/tinet_data_foundry_cli.egg-info/entry_points.txt +0 -0
  17. {tinet_data_foundry_cli-0.1.8 → tinet_data_foundry_cli-0.1.9}/src/tinet_data_foundry_cli.egg-info/top_level.txt +0 -0
  18. {tinet_data_foundry_cli-0.1.8 → tinet_data_foundry_cli-0.1.9}/tests/test_docs.py +0 -0
  19. {tinet_data_foundry_cli-0.1.8 → tinet_data_foundry_cli-0.1.9}/tests/test_sign.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tinet-data-foundry-cli
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Tinet Data Foundry 取数 CLI(docs / catalog / query / schema)
5
5
  Author: Tinet
6
6
  License: MIT
@@ -64,7 +64,7 @@ tdf datasource-codes
64
64
  tdf datasource-codes --code nboss
65
65
  ```
66
66
 
67
- `_df_pt` 是通用查询字段,表示分区查询时间,写在 `fields` 或 `filter` 里,只有分区表有这一列。建议范围:按日查当天,`between` 不超过 30 天;按月的值是每月 1 日,建议查当月 1 日,跨月不超过 12 个月;按年查当年。列上的 `suggestedRange` 给出当前建议的 `from`/`to`。
67
+ 只筛分区字段(如 `startTime`)时,服务端按同一范围另补 `_df_pt` 裁分区。其他时间字段不补。`_df_pt` 不能作为查询列。响应 `partitionWindow.prunedFrom` / `prunedTo` 是实际裁剪区间。
68
68
 
69
69
  若 pip 提示 scripts 目录不在 PATH,把该目录加入 PATH,或用 `python3 -m tinet_data_foundry_cli`。
70
70
 
@@ -47,7 +47,7 @@ tdf datasource-codes
47
47
  tdf datasource-codes --code nboss
48
48
  ```
49
49
 
50
- `_df_pt` 是通用查询字段,表示分区查询时间,写在 `fields` 或 `filter` 里,只有分区表有这一列。建议范围:按日查当天,`between` 不超过 30 天;按月的值是每月 1 日,建议查当月 1 日,跨月不超过 12 个月;按年查当年。列上的 `suggestedRange` 给出当前建议的 `from`/`to`。
50
+ 只筛分区字段(如 `startTime`)时,服务端按同一范围另补 `_df_pt` 裁分区。其他时间字段不补。`_df_pt` 不能作为查询列。响应 `partitionWindow.prunedFrom` / `prunedTo` 是实际裁剪区间。
51
51
 
52
52
  若 pip 提示 scripts 目录不在 PATH,把该目录加入 PATH,或用 `python3 -m tinet_data_foundry_cli`。
53
53
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tinet-data-foundry-cli"
7
- version = "0.1.8"
7
+ version = "0.1.9"
8
8
  description = "Tinet Data Foundry 取数 CLI(docs / catalog / query / schema)"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -0,0 +1 @@
1
+ __version__ = "0.1.9"
@@ -318,8 +318,7 @@ def build_parser() -> argparse.ArgumentParser:
318
318
  "filter AST JSON。字符串字段可 starts_with(右模糊)、ends_with(左模糊)、contains(左右模糊)。"
319
319
  "仅按日分区必填:省略分区字段时按上海时区补当天,显式 between 不超过 30 天。"
320
320
  "按月、按年分区字段不是必填条件。"
321
- "_df_pt 是通用查询字段,表示分区查询时间:按日建议当天(不超过 30 天),"
322
- "按月建议当月 1 日(不超过 12 个月),按年建议当年"
321
+ "只筛分区字段时,服务端另补 _df_pt 裁分区;其他时间字段不补。_df_pt 不能作为查询列"
323
322
  ),
324
323
  )
325
324
  q.add_argument("--sort", help="sort JSON 数组")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tinet-data-foundry-cli
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Tinet Data Foundry 取数 CLI(docs / catalog / query / schema)
5
5
  Author: Tinet
6
6
  License: MIT
@@ -64,7 +64,7 @@ tdf datasource-codes
64
64
  tdf datasource-codes --code nboss
65
65
  ```
66
66
 
67
- `_df_pt` 是通用查询字段,表示分区查询时间,写在 `fields` 或 `filter` 里,只有分区表有这一列。建议范围:按日查当天,`between` 不超过 30 天;按月的值是每月 1 日,建议查当月 1 日,跨月不超过 12 个月;按年查当年。列上的 `suggestedRange` 给出当前建议的 `from`/`to`。
67
+ 只筛分区字段(如 `startTime`)时,服务端按同一范围另补 `_df_pt` 裁分区。其他时间字段不补。`_df_pt` 不能作为查询列。响应 `partitionWindow.prunedFrom` / `prunedTo` 是实际裁剪区间。
68
68
 
69
69
  若 pip 提示 scripts 目录不在 PATH,把该目录加入 PATH,或用 `python3 -m tinet_data_foundry_cli`。
70
70
 
@@ -22,7 +22,8 @@ class CliParserTest(unittest.TestCase):
22
22
  self.assertIn("当天", help_text)
23
23
  self.assertIn("按月、按年分区字段不是必填条件", help_text)
24
24
  self.assertIn("_df_pt", help_text)
25
- self.assertIn("分区查询时间", help_text)
25
+ self.assertIn("裁分区", help_text)
26
+ self.assertIn("不能作为查询列", help_text)
26
27
  self.assertNotIn("按月补当月", help_text)
27
28
 
28
29
  def test_subcommands(self):
@@ -1 +0,0 @@
1
- __version__ = "0.1.8"