-
Notifications
You must be signed in to change notification settings - Fork 673
YDB FQ: avoid outdated syntax "SELECT * FROM cluster.db.table
"
#6901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f94e9e8
64672e3
508fc80
06ce877
82f6ce3
17caeb7
4b27fa8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,11 @@ namespace NYql::NConnector { | |
return NDqProto::StatusIds::StatusCode::StatusIds_StatusCode_UNSUPPORTED; | ||
case ::Ydb::StatusIds::StatusCode::StatusIds_StatusCode_NOT_FOUND: | ||
return NDqProto::StatusIds::StatusCode::StatusIds_StatusCode_BAD_REQUEST; | ||
case ::Ydb::StatusIds::StatusCode::StatusIds_StatusCode_SCHEME_ERROR: | ||
return NDqProto::StatusIds::StatusCode::StatusIds_StatusCode_BAD_REQUEST; | ||
default: | ||
// FIXME: remove me after debug | ||
Cout << "CRAB: " << ::Ydb::StatusIds::StatusCode_Name(error.status()) << Endl; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Это нужно убрать |
||
ythrow yexception() << "Unexpected YDB status code: " << ::Ydb::StatusIds::StatusCode_Name(error.status()); | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,12 +140,12 @@ def _primitive_types(self) -> Sequence[TestCase]: | |
# Don't be surprised - binary types look like UTF8 strings in Go | ||
Column( | ||
name='col_22_binary', | ||
ydb_type=makeOptionalYdbTypeFromTypeID(Type.UTF8), | ||
ydb_type=makeOptionalYdbTypeFromTypeID(Type.STRING), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Интересно как это связано с текущим ревью. Или это просто рефакторинг? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Тип MySQL Binary мапится в тип YDB String |
||
data_source_type=DataSourceType(my=mysql.Binary()), | ||
), | ||
Column( | ||
name='col_23_varbinary', | ||
ydb_type=makeOptionalYdbTypeFromTypeID(Type.UTF8), | ||
ydb_type=makeOptionalYdbTypeFromTypeID(Type.STRING), | ||
data_source_type=DataSourceType(my=mysql.VarBinary()), | ||
), | ||
Column( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Нужно в
NDqProto::StatusIds::StatusCode::StatusIds_StatusCode_SCHEME_ERROR
мапить