小编Ton*_*y B的帖子

无法使用git clone git修复repo:// ... - 使用git clone http://

Git新手在这里.我在一个新的Ubuntu VM上设置git并尝试克隆一些repos.克隆适用于以下命令:

git clone http://github.com/organisation_name/repo_name
Run Code Online (Sandbox Code Playgroud)

(在提示输入用户名/密码后),但失败了

git clone git://github.com/organisation_name/repo_name
Run Code Online (Sandbox Code Playgroud)

并且

git clone git://github.com/organisation_name/repo_name.git
Run Code Online (Sandbox Code Playgroud)

使用相同的错误消息:

Cloning into 'repo_name'...
fatal: remote error:
Repository not found
Run Code Online (Sandbox Code Playgroud)

当然,显而易见的答案是"使用http方法",但我试图理解为什么一个有用而另一个没有.有什么建议?(.git在回购名称btw上使用扩展名时有什么区别吗?)

谢谢!

git http git-clone

10
推荐指数
2
解决办法
3万
查看次数

我无法查询 Google BigQuery 表中的重复字段

我在 Google BigQuery 中有一个表,其中有重复的记录,我已按照https://cloud.google.com/bigquery/docs/nested-repeated上的指南成功创建了该表,并且已填充带有一些测试数据的表使用

INSERT INTO `<project>.<dataset>.<table>` (<list of fields, ending with repeated record name>)
VALUES
    (
        "string1", false, 200.0, "string2", 0.2, 2.345, false, "2020-01-02 12:34:56",
        [
            ("repeated field str1", CAST(2.01 AS FLOAT64), CAST(201 as NUMERIC), false),
            ("repeated field str2", CAST(4.01 AS FLOAT64), CAST(702 as NUMERIC), true)
        ]
    );
Run Code Online (Sandbox Code Playgroud)

(等等)并且表已成功填充,我也可以使用以下命令查询数据

select * from <dataset>.<table>
Run Code Online (Sandbox Code Playgroud)

并返回所有重复和非重复的字段。只要查询中没有指定重复字段,我也可以成功查询表中的非重复字段。但是,例如,当我想在查询中包含特定的重复字段时(并且我正在遵循https://cloud.google.com/bigquery/docs/legacy-nested-repeated上的指南)

SELECT normalfield1, normalfield2, normalfield3, 
repeatedData.field1, repeatedData.field2, repeatedData.field3
FROM `profile_dataset.profile_betdatamultiples`;
Run Code Online (Sandbox Code Playgroud)

我收到错误

Cannot access field <field name> on a value with type ARRAY<STRUCT<fieldname1 …
Run Code Online (Sandbox Code Playgroud)

google-bigquery

1
推荐指数
1
解决办法
1463
查看次数

标签 统计

git ×1

git-clone ×1

google-bigquery ×1

http ×1