这是indexloc提供的服务,不要输入任何密码
Skip to content

Error building data-validation #236

@ammarck

Description

@ammarck

When I try to build from source (docker and source directly), I get the following error:

external/com_github_tfx_bsl/tfx_bsl/cc/statistics/sql_util.cc: In function 'absl::lts_20210324::StatusOr<bool> tfx_bsl::statistics::EvaluatePredicate(const tensorflow::metadata::v0::FeatureNameStatistics&, const string&)':
external/com_github_tfx_bsl/tfx_bsl/cc/statistics/sql_util.cc:75:32: error: invalid initialization of reference of type 'const absl::lts_20210324::StatusOr<zetasql::Value>&' from expression of type 'zetasql_base::StatusOr<zetasql::Value>'
   return GetResult(expr.Execute(
                    ~~~~~~~~~~~~^
       {{"feature", zetasql::values::Proto(proto_type, feature_statistics)}}));
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external/com_github_tfx_bsl/tfx_bsl/cc/statistics/sql_util.cc:32:22: note: in passing argument 1 of 'absl::lts_20210324::StatusOr<bool> tfx_bsl::statistics::{anonymous}::GetResult(const absl::lts_20210324::StatusOr<zetasql::Value>&)'
 absl::StatusOr<bool> GetResult(
                      ^~~~~~~~~
external/com_github_tfx_bsl/tfx_bsl/cc/statistics/sql_util.cc: In function 'absl::lts_20210324::StatusOr<bool> tfx_bsl::statistics::EvaluatePredicate(const tensorflow::metadata::v0::FeatureNameStatistics&, const tensorflow::metadata::v0::FeatureNameStatistics&, const string&)':
external/com_github_tfx_bsl/tfx_bsl/cc/statistics/sql_util.cc:104:32: error: invalid initialization of reference of type 'const absl::lts_20210324::StatusOr<zetasql::Value>&' from expression of type 'zetasql_base::StatusOr<zetasql::Value>'
   return GetResult(expr.Execute(
                    ~~~~~~~~~~~~^
       {{"feature_base",
       ~~~~~~~~~~~~~~~~~
         zetasql::values::Proto(proto_type, feature_statistics_base)},
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        {"feature_test",
        ~~~~~~~~~~~~~~~~
         zetasql::values::Proto(proto_type, feature_statistics_test)}}));
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I am running it on my Mac Intel. Does anyone one know what to do?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions