1. 13 3月, 2020 1 次提交
  2. 12 3月, 2020 2 次提交
  3. 06 3月, 2020 1 次提交
    • kimmking's avatar
      fix #4565 for distinct bug (#4597) · b8f4d8d2
      kimmking 提交于
      * fix #4565 for distinct bug
      
      * Polish package import
      
      * Polish for checkstyle
      
      * Polish checkstyle for test
      
      * fix unit test
      
      * add testcases for distinct without order by
      
      * remove an unused import
      
      * Polish for checkstyle
      
      * Polish the checkstyle
      
      * add sql parser cases
      
      * Polish checkstyle
      b8f4d8d2
  4. 14 2月, 2020 2 次提交
  5. 13 2月, 2020 1 次提交
  6. 10 2月, 2020 2 次提交
  7. 03 2月, 2020 1 次提交
  8. 27 1月, 2020 1 次提交
    • L
      Split different SQL statement types to different jaxb definitions (#4087) · 11dfef56
      Liang Zhang 提交于
      * rename ParserResultSet to ExpectedSQLStatements
      
      * rename ExpectedSQLStatements to SQLParserTestCases
      
      * rename ParserResultSetRegistry to SQLParserTestCasesRegistry
      
      * rename ParserResultSetRegistryFactory to SQLParserTestCasesRegistryFactory
      
      * rename VisitorParserResultSetRegistry to VisitorSQLParserTestCasesRegistryFactory
      
      * rename ParserResult to SQLParserTestCase
      
      * add jaxb.segment package
      
      * add jaxb.statement package
      
      * split different SQL statement types to different jaxb definitions
      
      * add final for jaxb's list
      11dfef56
  9. 26 1月, 2020 1 次提交
    • L
      Add where assert for update and delete statement (#4085) · 089eef6d
      Liang Zhang 提交于
      * remove table check in public assert
      
      * add where assert for delete and update
      
      * fix table assert for alter table
      
      * fix test case for delete_with_alias
      
      * fix test case for delete_with_sharding_value
      
      * fix test case for delete_with_special_character_without_sharding_value
      
      * fix test case for delete_with_special_comments_return_without_sharding_value
      
      * fix test case for delete_with_special_comments_returning_without_sharding_value
      
      * fix test case for delete_without_sharding_value
      
      * fix test case for update_equal_with_geography
      
      * fix test case for update_with_alias
      
      * fix test case for update_with_extra_keywords
      
      * fix test case for update_with_or
      
      * fix test case for update_with_special_character
      
      * fix test case for update_with_special_comments
      
      * fix test case for update_without_alias
      
      * fix test case for update_without_parameters
      
      * fix test case for update_with_special_character
      
      * remove zero parameter-marker-start-index
      089eef6d
  10. 25 1月, 2020 1 次提交
    • L
      Add more assertions for order by (#4082) · 491862b1
      Liang Zhang 提交于
      * add OrderByItemAssert
      
      * add more assertions for order by
      
      * rename ExpectedGroupBy to ExpectedOrderBy
      
      * fix test case for select_comparison_symbol_with_single_table
      
      * fix test case for select_distinct_with_count_group_by
      
      * fix test case for select_distinct_with_multi_column
      
      * fix test case for select_distinct_with_owner_column
      
      * fix test case for select_distinct_with_owner_star
      
      * fix test case for select_distinct_with_single_count_group_by
      
      * fix test case for select_distinct_with_star
      
      * fix test case for select_exclamation_equal_with_single_table
      
      * fix test case for select_full_route_with_binding_tables
      
      * fix test case for select_distinct_with_owner_star
      
      * fix test case for select_group_by_with_avg
      
      * fix test case for select_group_by_with_count
      
      * fix test case for select_group_by_with_count_without_column_name
      
      * fix test case for select_group_by_with_limit
      
      * fix test case for select_group_by_with_max
      
      * fix test case for select_group_by_with_min
      
      * fix test case for select_group_by_with_order_by_and_limit
      
      * fix test case for select_group_by_with_order_by_desc
      
      * fix test case for select_group_by_with_sum
      
      * fix test case for select_in_with_same_sharding_column
      
      * fix test case for select_in_with_single_table
      
      * fix test case for select_keyword_table_name_with_back_quotes
      
      * fix test case for select_keyword_table_name_with_double_quotes
      
      * fix test case for select_keyword_table_name_with_square_brackets
      
      * fix test case for select_not_between_with_single_table
      
      * fix test case for select_not_equal_with_single_table
      
      * fix test case for select_not_in_with_single_table
      
      * fix test case for select_order_by_asc_and_index_desc
      
      * fix test case for select_order_by_desc_and_index_asc
      
      * fix test case for select_order_by_for_nulls_first
      
      * fix test case for select_order_by_for_nulls_last
      
      * fix test case for select_order_by_with_alias_star_alias_name
      
      * fix test case for select_order_by_with_date
      
      * fix test case for select_order_by_with_multiple_stars
      
      * fix test case for select_order_by_with_ordered_column
      
      * fix test case for select_order_by_with_star_no_table_alias
      
      * fix test case for select_order_by_with_star_table_alias
      
      * fix test case for select_order_by_with_table_star_table_name
      
      * fix test case for select_order_by_with_table_star_without_table_name
      
      * fix test case for select_pagination_with_diff_group_by_and_order_by
      
      * fix test case for select_pagination_with_group_by_and_order_by
      
      * fix test case for select_pagination_with_limit_and_offset_keyword
      
      * fix test case for select_pagination_with_limit_with_back_quotes
      
      * fix test case for select_pagination_with_offset
      
      * fix test case for select_pagination_with_offset_and_limit
      
      * fix test case for select_pagination_with_offset_fetch
      
      * fix test case for select_pagination_with_row_count
      
      * fix test case for select_pagination_with_row_number
      
      * fix test case for select_pagination_with_row_number_for_greater_than
      
      * fix test case for select_pagination_with_row_number_and_diff_group_by_and_order_by
      
      * fix test case for select_pagination_with_row_number_and_group_by_and_order_by
      
      * fix test case for select_pagination_with_row_number_for_greater_than_and_equal
      
      * fix test case for select_pagination_with_row_number_not_at_end
      
      * fix test case for select_pagination_with_top
      
      * fix test case for select_pagination_with_top_and_diff_group_by_and_order_by
      
      * fix test case for select_pagination_with_top_and_diff_group_by_and_order_by_and_parentheses
      
      * fix test case for select_pagination_with_top_and_group_by_and_order_by
      
      * fix test case for select_pagination_with_top_and_group_by_and_order_by_and_parentheses
      
      * fix test case for select_pagination_with_top_for_greater_than
      
      * fix test case for select_pagination_with_top_for_greater_than_and_equal
      
      * fix test case for select_sharding_route_with_binding_tables
      
      * fix test case for select_sharding_route_with_broadcast_table
      
      * fix test case for select_with_date_function
      
      * fix test case for select_with_double_quotes
      
      * fix test case for select_with_expression
      
      * fix test case for select_with_item_alias_match_order_by_and_group_by_items
      
      * remove useless group-by-columns and order-by-columns
      491862b1
  11. 24 1月, 2020 4 次提交
    • L
      Add more assertion for group by (#4080) · 8bf0e51d
      Liang Zhang 提交于
      * Add more assertion for group by column item
      
      * add assertOrderInfo
      
      * Add more assertion for group by
      
      * fix test case select_distinct_with_count_group_by
      
      * fix test case select_distinct_with_single_count_group_by
      
      * fix test case select_group_by_with_avg
      
      * fix test case select_group_by_with_count
      
      * fix test case select_group_by_with_count_without_column_name
      
      * fix test case select_group_by_with_date_function
      
      * fix test case select_group_by_with_date_function
      
      * add index assertion
      
      * fix test case for select_group_by_with_keyword_alias
      
      * fix test case for select_group_by_with_limit
      
      * fix test case for select_group_by_with_max
      
      * fix test case for select_group_by_with_min
      
      * fix test case for select_group_by_with_order_by_and_limit
      
      * fix test case for select_group_by_with_order_by_desc
      
      * fix test case for select_group_by_with_sum
      
      * fix test case for select_group_by_without_grouped_column
      
      * fix test case for select_pagination_with_group_by_and_order_by
      
      * fix test case for select_pagination_with_row_number_and_diff_group_by_and_order_by
      
      * fix test case for select_pagination_with_row_number_and_group_by_and_order_by
      
      * fix test case for select_pagination_with_top_and_diff_group_by_and_order_by
      
      * fix test case for select_pagination_with_top_and_group_by_and_order_by
      
      * fix test case for select_with_item_alias_match_order_by_and_group_by_items
      8bf0e51d
    • L
      Remove useless condition assert from xml (#4074) · f1e35090
      Liang Zhang 提交于
      * add shardingsphere-ui-bin-distribution module
      
      * add shardingsphere-ui-src-distribution module
      
      * add final name for shardingsphere-ui
      
      * assert between predicate
      
      * fix test case for select_between_with_geography
      
      * add null assert
      
      * remove IN operator
      
      * fix test case for select_between_with_single_table
      
      * fix test case for select_count_like_concat
      
      * fix test case for select_count_like_concat
      
      * fix test case for select_count_with_binding_tables_with_join
      
      * fix test case for select_count_tilde_concat
      
      * fix test case for select_count_with_binding_tables_without_join
      
      * fix test case for select_group_by_without_grouped_column
      
      * fix test case for select_keyword_table_name_with_back_quotes
      
      * fix test case for select_keyword_table_name_with_double_quotes
      
      * fix test case for select_keyword_table_name_with_square_brackets
      
      * fix test case for select_pagination_with_diff_group_by_and_order_by
      
      * fix test case for select_pagination_with_group_by_and_order_by
      
      * fix test case for select_pagination_with_limit_and_offset_keyword
      
      * fix test case for select_pagination_with_limit_with_back_quotes
      
      * fix test case for select_pagination_with_offset_and_limit
      
      * fix test case for select_pagination_with_row_count
      
      * fix test case for select_pagination_with_top
      
      * fix test case for select_sharding_route_with_binding_tables
      
      * fix test case for select_sharding_route_with_broadcast_table
      
      * fix all cases
      
      * remove useless condition assert
      f1e35090
    • L
      Assert between predicate (#4073) · f98055bd
      Liang Zhang 提交于
      * add shardingsphere-ui-bin-distribution module
      
      * add shardingsphere-ui-src-distribution module
      
      * add final name for shardingsphere-ui
      
      * assert between predicate
      
      * fix test case for select_between_with_geography
      
      * add null assert
      
      * remove IN operator
      
      * fix test case for select_between_with_single_table
      
      * fix test case for select_count_like_concat
      
      * fix test case for select_count_like_concat
      
      * fix test case for select_count_with_binding_tables_with_join
      
      * fix test case for select_count_tilde_concat
      
      * fix test case for select_count_with_binding_tables_without_join
      
      * fix test case for select_group_by_without_grouped_column
      
      * fix test case for select_keyword_table_name_with_back_quotes
      
      * fix test case for select_keyword_table_name_with_double_quotes
      
      * fix test case for select_keyword_table_name_with_square_brackets
      
      * fix test case for select_pagination_with_diff_group_by_and_order_by
      
      * fix test case for select_pagination_with_group_by_and_order_by
      
      * fix test case for select_pagination_with_limit_and_offset_keyword
      
      * fix test case for select_pagination_with_limit_with_back_quotes
      
      * fix test case for select_pagination_with_offset_and_limit
      
      * fix test case for select_pagination_with_row_count
      
      * fix test case for select_pagination_with_top
      
      * fix test case for select_sharding_route_with_binding_tables
      
      * fix test case for select_sharding_route_with_broadcast_table
      
      * fix all cases
      f98055bd
    • L
      Assert in right value for predicate (#4072) · 0bb28bd1
      Liang Zhang 提交于
      * add shardingsphere-ui-bin-distribution module
      
      * add shardingsphere-ui-src-distribution module
      
      * add final name for shardingsphere-ui
      
      * assert in predicate
      
      * refactor WhereAssert
      
      * fix test case select_count_like_concat
      
      * fix test case select_count_tilde_concat
      
      * fix test case select_count_with_binding_tables_with_join
      
      * fix test case select_count_with_binding_tables_without_join
      
      * fix test case select_group_by_with_date_function
      
      * fix test case select_group_by_without_grouped_column
      
      * fix test case select_in_with_geography
      
      * fix test case select_in_with_same_sharding_column
      
      * fix test case select_in_with_single_table
      
      * fix test case select_keyword_table_name_with_back_quotes
      
      * fix test case select_keyword_table_name_with_double_quotes
      
      * fix test case select_keyword_table_name_with_square_brackets
      
      * fix test case select_pagination_with_diff_group_by_and_order_by
      
      * fix test case select_pagination_with_group_by_and_order_by
      
      * fix test case select_pagination_with_limit_and_offset_keyword
      
      * fix test case select_pagination_with_limit_with_back_quotes
      
      * fix test case select_pagination_with_offset
      
      * fix test case select_pagination_with_offset_and_limit
      
      * fix test case select_pagination_with_row_count
      
      * fix test case select_pagination_with_top
      
      * fix test case select_sharding_route_with_binding_tables
      
      * fix test case select_sharding_route_with_broadcast_table
      
      * fix test case select_with_regexp
      
      * add todo
      
      * add ExpressionAssert
      0bb28bd1
  12. 23 1月, 2020 3 次提交
    • L
      Assert compare right value of predication (#4071) · 0f065512
      Liang Zhang 提交于
      * add shardingsphere-ui-bin-distribution module
      
      * add shardingsphere-ui-src-distribution module
      
      * add final name for shardingsphere-ui
      
      * remove useless assert
      
      * rename param-marker to parameter-marker
      
      * refactor assertCompareRightValue
      
      * refactor ExpectedPredicateCompareRightValue
      
      * refactor ExpectedPredicateBetweenRightValue
      
      * refactor ExpectedPredicateInRightValue
      
      * refactor ExpectedPredicateBetweenRightValue
      
      * remove ExpectedPredicate.findExpectedRightValue()
      
      * add ExpectedOperator
      
      * refactor assert compare predicate for right value
      
      * fix case for select_alias_as_keyword
      
      * fix case for select_alias_as_keyword
      
      * fix case for select_comparison_symbol_with_single_table
      
      * fix case for select_count
      
      * fix case for select_count_with_sub_with_whitespace
      
      * fix case for select_distinct_with_aggregation_functions
      
      * fix case for select_distinct_with_avg
      
      * fix case for select_distinct_with_count
      
      * fix case for select_distinct_with_count_sum
      
      * fix case for select_distinct_with_single_count_group_by
      
      * fix case for select_distinct_with_star
      
      * fix case for select_distinct_with_sum
      
      * fix case for select_equal_with_geography
      
      * fix case for select_equal_with_same_sharding_column
      
      * fix case for select_equal_with_single_table
      
      * fix case for select_escape_with_single_quota
      
      * fix case for select_exclamation_equal_with_single_table
      
      * fix case for select_for_update
      
      * fix case for select_in_with_geography
      
      * fix case for select_inner_join_related_with_alias
      
      * fix case for select_inner_join_related_with_name
      
      * fix case for select_join_using
      
      * fix case for select_keyword_table_name_with_back_quotes
      
      * fix case for select_keyword_table_name_with_double_quotes
      
      * fix case for select_keyword_table_name_with_double_quotes
      
      * fix case for select_keyword_table_name_with_square_brackets
      
      * fix case for select_not_equal_with_single_table
      
      * fix case for select_or_mix_and_for_complex_pattern
      
      * fix case for select_or_mix_and_for_simple_pattern
      
      * fix case for select_or_mix_and_with_binding_and_broadcast_tables
      
      * fix case for select_or_mix_and_with_binding_tables
      
      * fix case for select_or_with_different_sharding_columns
      
      * fix case for select_or_with_none_sharding_columns
      
      * fix case for select_or_with_same_sharding_columns
      
      * fix case for select_order_by_desc_and_index_asc
      
      * fix case for select_order_by_with_date
      
      * fix case for select_pagination_with_row_number
      
      * fix case for select_pagination_with_row_number_and_diff_group_by_and_order_by
      
      * fix case for select_pagination_with_row_number_and_group_by_and_order_by
      
      * fix case for select_pagination_with_row_number_for_greater_than
      
      * fix case for select_pagination_with_row_number_for_greater_than_and_equal
      
      * fix case for select_pagination_with_row_number_not_at_end
      
      * fix case for select_pagination_with_top_and_diff_group_by_and_order_by
      
      * fix case for select_pagination_with_top_and_diff_group_by_and_order_by_and_parentheses
      
      * fix case for select_pagination_with_top_and_group_by_and_order_by
      
      * fix case for select_pagination_with_top_and_group_by_and_order_by_and_parentheses
      
      * fix case for select_pagination_with_top_for_greater_than
      
      * fix case for select_pagination_with_top_for_greater_than_and_equal
      
      * fix case for select_sharding_route_with_broadcast_table
      
      * fix case for select_special_function_nested
      
      * fix case for select_with_block_comment
      
      * fix case for select_with_double_quotes
      
      * fix case for select_with_force_index_join
      
      * fix case for select_with_interval_function
      
      * fix case for select_with_left_function
      
      * fix case for select_with_same_table_name_and_alias
      
      * fix case for select_with_same_table_name_and_alias_column_with_owner
      
      * fix case for select_with_single_comment
      0f065512
    • L
      Add assert column right value for predicate (#4070) · 7cf157e8
      Liang Zhang 提交于
      * add shardingsphere-ui-bin-distribution module
      
      * add shardingsphere-ui-src-distribution module
      
      * add final name for shardingsphere-ui
      
      * add column-left-value
      
      * fix case select_count_with_binding_tables_without_join
      
      * fix case select_distinct_with_owner_star
      
      * fix case select_escape_with_double_quota
      
      * fix case select_order_by_desc_and_index_asc
      
      * fix case select_order_by_with_date
      7cf157e8
    • L
      Add assertion for column predicates's left value (#4069) · 6f95343d
      Liang Zhang 提交于
      * add shardingsphere-ui-bin-distribution module
      
      * add shardingsphere-ui-src-distribution module
      
      * add final name for shardingsphere-ui
      
      * fix case for select_between_with_single_table
      
      * refactor select_comparison_symbol_with_single_table
      
      * refactor select_count_like_concat
      
      * refactor select_count_tilde_concat
      
      * refactor select_count_with_binding_tables_with_join
      
      * refactor select_count_with_binding_tables_without_join
      
      * refactor select_count_with_sub
      
      * refactor select_count_with_sub_with_whitespace
      
      * refactor select_distinct_with_aggregation_functions
      
      * refactor select_distinct_with_avg
      
      * fix test case for select_distinct_with_count
      
      * fix test case for select_distinct_with_owner_star
      
      * fix test case for select_distinct_with_star
      
      * fix test case for select_distinct_with_sum
      
      * fix test case for select_equal_with_geography
      
      * fix test case for select_equal_with_same_sharding_column
      
      * fix test case for select_equal_with_same_sharding_column
      
      * fix test case for select_equal_with_single_table
      
      * fix test case for select_escape_with_double_quota
      
      * fix test case for select_escape_with_single_quota
      
      * fix test case for select_exclamation_equal_with_single_table
      
      * fix test case for select_for_update
      
      * fix test case for select_group_by_without_grouped_column
      
      * fix test case for select_in_with_geography
      
      * fix test case for select_in_with_same_sharding_column
      
      * fix test case for select_in_with_single_table
      
      * fix test case for select_inner_join_related_with_alias
      
      * fix test case for select_inner_join_related_with_name
      
      * fix test case for select_join_using
      
      * fix test case for select_keyword_table_name_with_back_quotes
      
      * fix test case for select_keyword_table_name_with_double_quotes
      
      * fix test case for select_keyword_table_name_with_square_brackets
      
      * fix test case for select_not_between_with_single_table
      
      * fix test case for select_not_equal_with_single_table
      
      * fix test case for select_not_equal_with_single_table
      
      * fix test case for select_not_in_with_single_table
      
      * fix test case for select_or_mix_and_for_complex_pattern
      
      * fix test case for select_or_mix_and_for_simple_pattern
      
      * fix test case for select_or_mix_and_with_binding_and_broadcast_tables
      
      * fix test case for select_or_mix_and_with_binding_tables
      
      * fix test case for select_or_with_different_sharding_columns
      
      * fix test case for select_order_by_desc_and_index_asc
      
      * fix test case for select_order_by_with_date
      
      * fix test case for select_pagination_with_diff_group_by_and_order_by
      
      * fix test case for select_pagination_with_group_by_and_order_by
      
      * fix test case for select_pagination_with_limit_and_offset_keyword
      
      * fix test case for select_pagination_with_limit_with_back_quotes
      
      * fix test case for select_pagination_with_offset_and_limit
      
      * fix test case for select_pagination_with_offset
      
      * fix test case for select_pagination_with_row_count
      
      * fix test case for select_pagination_with_row_number
      
      * fix test case for select_pagination_with_row_number_and_diff_group_by_and_order_by
      
      * fix test case for select_pagination_with_row_number_and_group_by_and_order_by
      
      * fix test case for select_pagination_with_row_number_for_greater_than
      
      * fix test case for select_pagination_with_row_number_for_greater_than_and_equal
      
      * fix test case for select_pagination_with_row_number_not_at_end
      
      * fix test case for select_pagination_with_top
      
      * fix test case for select_pagination_with_top_and_diff_group_by_and_order_by
      
      * fix test case for select_pagination_with_top_and_diff_group_by_and_order_by_and_parentheses
      
      * fix test case for select_pagination_with_top_and_group_by_and_order_by
      
      * fix test case for select_pagination_with_top_for_greater_than
      
      * fix test case for select_pagination_with_top_for_greater_than_and_equal
      
      * fix test case for select_sharding_route_with_binding_tables
      
      * fix test case for select_sharding_route_with_broadcast_table
      
      * fix test case for select_special_function_nested
      
      * fix test case for select_with_block_comment
      
      * fix test case for select_with_date_format_function
      
      * fix test case for select_with_double_quotes
      
      * fix test case for select_with_force_index_join
      
      * fix test case for select_with_interval_function
      
      * fix test case for select_with_left_function
      
      * fix test case for select_with_mod_function
      
      * fix test case for select_with_regexp
      
      * fix test case for select_with_row_subquery
      
      * fix test case for select_with_row_subquery_without_row_keyword
      
      * fix test case for select_with_same_table_name_and_alias
      
      * fix test case for select_with_same_table_name_and_alias_column_with_owner
      
      * fix test case for select_with_single_comment
      
      * fix test case for select_with_spatial_function
      
      * skip assert for long sql
      
      * skip long sql
      6f95343d
  13. 21 1月, 2020 1 次提交
    • L
      Use PositionAssert assert start index and stop index (#4058) · 53e85d9e
      Liang Zhang 提交于
      * add shardingsphere-ui-bin-distribution module
      
      * add shardingsphere-ui-src-distribution module
      
      * add final name for shardingsphere-ui
      
      * rename parameterStartIndex to parameterMarkerStartIndex
      
      * rename PredicateAssert to WhereAssert
      
      * refactor WhereAssert.assertAndPredicate()
      
      * rename ExpectedPredicateSegment to ExpectedPredicate
      
      * rename ExpectedColumnSegment to ExpectedColumn
      
      * refactor predicate.value
      
      * refactor WhereAssert.assertColumn
      
      * refactor WhereAssert.assertCompareRightValue
      
      * add literalStartIndex and literalStopIndex
      
      * refactor domain of ExpectedWhere
      
      * fix case for select_alias_as_keyword
      
      * fix case for select_between_with_geography
      
      * add PositionAssert
      53e85d9e
  14. 19 1月, 2020 1 次提交
    • L
      Complete projection assertion (#4015) · 9405b259
      Liang Zhang 提交于
      * remove useless findSQLSegment in SQLStatementAssert
      
      * assert projections's attribute
      
      * distinctRow to distinct-row for xml
      
      * fix assert text
      
      * remove XmlElementWrapper
      
      * refactor ExpectedProjections's field name
      
      * rename ExpectedBaseProjection to AbstractExpectedProjection
      
      * refactor ExpectedProjections.findExpectedProjections()
      
      * add getStartIndex and getStopIndex for ExpectedProjection interface
      
      * add sort for projections
      
      * add sort for projections
      
      * remove useless getter for ExpectedProjections
      
      * refactor ProjectionAssert.assertProjection
      
      * add start index and stop index's assert for assertProjection
      
      * use int instead of Integer in ExpectedProjection
      
      * use int instead of Integer in ExpectedProjections
      
      * refactor ExpectedTableSegment
      
      * add assertShorthandProjection
      
      * add assertShorthandProjection
      
      * add assertColumnProjection
      
      * add assertAggregationProjection
      
      * add assertAggregationDistinctProjection
      
      * add assertExpressionProjection
      
      * add assertTopProjection
      
      * remove ExpectedProjection.getText() and getParameterMarkerText()
      9405b259
  15. 17 1月, 2020 1 次提交
  16. 16 1月, 2020 1 次提交
  17. 15 1月, 2020 1 次提交
  18. 14 1月, 2020 1 次提交
  19. 13 1月, 2020 1 次提交
    • L
      Remove SQL cases for sharding, encrypt and shadow, just need a unify SQL cases (#3958) · ac4c8710
      Liang Zhang 提交于
      * remove useless encrypt and shadow sql for parse
      
      * rename ShardingSQLCasesRegistry to SQLCasesRegistry
      
      * rename ShardingParameterizedParsingTest to ParameterizedParsingTest
      
      * rename ShardingSQLStatementAssert to SQLStatementAssert
      
      * rename sharding resources to sql resources
      
      * remove useless EncryptParserResultSetRegistry and ShadowParserResultSetRegistry
      ac4c8710
  20. 05 1月, 2020 1 次提交
  21. 19 12月, 2019 1 次提交
  22. 18 12月, 2019 3 次提交
    • Revert "Sharding scaling synchronize main branch (#3754)" · 67f9618c
      杨翊 SionYang 提交于
      This reverts commit a41f4370.
      67f9618c
    • Sharding scaling synchronize main branch (#3754) · a41f4370
      杨翊 SionYang 提交于
      * Correct mismatched comments (#3594)
      
      * #3587, cache DataSourceMetaData (#3588)
      
      * #3587, cache DataSourceMetaData
      
      * #3587, add test case
      
      * fixes apollo debug & warn log, control log out by slf4j xml file. (#3583)
      
      * fixes apollo debug & warn log.
      
      * Move jul-to-slf4j -> root pom.
      
      * fixes jul-to-slf4j scope -> compile.
      
      * remove maven default scope.
      
      * Update snowflake algorithm to support modulus of 2^n  (#3595)
      
      * update vibration offset
      
      * add vibration offset test case
      
      * update vibration offset
      
      * update vibration offset
      
      * modify vibration offset test case
      
      * modify vibration offset test case
      
      * Refactor metadata (#3604)
      
      * decouple DatabaseType and DataSourceInfo
      
      * fix use == for string equals
      
      * decouple DataSourceMetaData and DataSourceInfo
      
      * fix javadoc
      
      * refactor LogicSchema.getDataSourceInfoMap()
      
      * reuse DatabaseAccessConfiguration and remove DataSourceInfo
      
      * refactor SQLExecuteCallback
      
      * change TableMetaDataInitializer's getTables parameter error. (#3589)
      
      * Modify SnowflakeShardingKeyGeneratorTest Unit-test case (#3610)
      
      * make all pom files consist (#3614)
      
      * make consist with pom
      
      * make consist with pom
      
      * adjust dependency sequence of ui-backend
      
      * for code style
      
      * ignore db test (#3615)
      
      * simplify test case assertLastDigitalOfGenerateKeySameMillisecond (#3616)
      
      * support SELECT DATABASE() (#3622)
      
      * Fixes #3627 (#3629)
      
      * move StatementExecuteUnit to sql package
      
      * move ShardingExecuteEngine to engine package
      
      * for code style
      
      * rename QueryResultBasedQueryResultFixture and ResultSetBasedQueryResultFixture
      
      * refactor DistinctQueryResult.getQueryRows()
      
      * skip distinct merge for group by and aggregation only
      
      * add DQLMergeEngine.isNeedProcessOrderBy
      
      * use group by to merge distinct row
      
      * add DQLMergeEngine.setGroupByForDistinctRow
      
      * remove useless SelectItemsSegment.findSelectItemSegments
      
      * code style for AggregationDistinctQueryResult
      
      * code style for AggregationDistinctQueryResult
      
      * remove DistinctQueryResult.divide()
      
      * remove useless DistinctQueryResult
      
      * use group by to process aggregation distinct
      
      * remove useless AggregationDistinctQueryResult
      
      * remove useless AggregationDistinctQueryMetaData
      
      * remove useless QueryResult.getQueryResultMetaData()
      
      * remove useless QueryRow.distinctColumnIndexes
      
      * remove useless QueryRow.distinctColumnIndexes
      
      * remove useless QueryRow.@EqualsAndHashCode
      
      * remove useless QueryRow
      
      * adjust constructor seq of DQLMergeEngine
      
      * refactor DQLMergeEngine's constructor
      
      * move ProjectionsContext.getColumnLabels() to ProjectionsContextEngine
      
      * remove DQLMergeEngine.tableMetas
      
      * refactor DQLMergeEngine
      
      * code style for ProjectionsContextEngine
      
      * #3550, update SERVER_VERSION of Sharding-Proxy (#3632)
      
      * Add maxVibrationOffset to LeafSnowflakeKeyGenerator (#3636)
      
      * #3640, fix missing milliseconds when reading (#3643)
      
      * #3640, fix missing milliseconds when reading
      
      * #3640, for test case
      
      * Uniform naming style for properties (#3649)
      
      * Decouple sharding-core-execute module and encrypt (#3654)
      
      * remove getter of StreamQueryResult.queryResultMetaData
      
      * refactor MemoryQueryResult
      
      * refactor StreamQueryResult
      
      * refactor StreamQueryResult
      
      * refactor MemoryQueryResult
      
      * refactor QueryResultMetaData
      
      * move decrypt from MemoryQueryResult & StreamQueryResult to EncryptResultSet, ShardingResultSet & JDBCDatabaseCommunicationEngine
      
      * remove useless SuppressWarnings
      
      * adjust method sequence of QueryResult
      
      * use MergedResult.getValue(columnIndex) instead of MergedResult.getValue(columnLabel)
      
      * remove useless MergedResult.getValue(columnLabel)
      
      * remove useless QueryResult.getValue(columnLabel)
      
      * decouple QueryResultMetaData and queryWithCipherColumn
      
      * remove QueryResultMetaData.queryWithCipherColumn
      
      * refactor QueryResultMetaData.findShardingEncryptorWithTable
      
      * remove QueryResultMetaData.getShardingEncryptor
      
      * remove QueryResultMetaData.columnLabelAndIndexes
      
      * remove QueryResultMetaData
      
      * remove QueryResultUtil
      
      * Update docker java version (#3652)
      
      * Update docker java version
      
      * Revert "Update docker java version"
      
      This reverts commit 16c913b251db84bd5e87f863d86329af9f029547.
      
      * Change postgresql driver version
      
      * Remove QueryResult‘s fixture from merge test case (#3661)
      
      * remove useless throw exception for MergeEngineFactory
      
      * remove useless throw exception for MergeEngineFactoryTest
      
      * decouple MergeEngineFactoryTest and ResultSetBasedQueryResultFixture
      
      * decouple DALMergeEngineTest and ResultSetBasedQueryResultFixture
      
      * decouple ShowCreateTableMergedResultTest and ResultSetBasedQueryResultFixture
      
      * decouple ShowDatabasesMergedResultTest and ResultSetBasedQueryResultFixture
      
      * decouple ShowOtherMergedResultTest and ResultSetBasedQueryResultFixture
      
      * decouple ShowTablesMergedResultTest and ResultSetBasedQueryResultFixture
      
      * refactor LogicTablesMergedResult's constructor
      
      * decouple DQLMergeEngineTest and ResultSetBasedQueryResultFixture
      
      * decouple StreamMergedResultTest and ResultSetBasedQueryResultFixture
      
      * decouple MemoryQueryResultRowTest and ResultSetBasedQueryResultFixture
      
      * decouple MemoryMergedResultTest and ResultSetBasedQueryResultFixture
      
      * decouple GroupByMemoryMergedResultTest and ResultSetBasedQueryResultFixture
      
      * decouple GroupByRowComparatorTest and ResultSetBasedQueryResultFixture
      
      * decouple GroupByStreamMergedResultTest and ResultSetBasedQueryResultFixture
      
      * decouple GroupByValueTest and ResultSetBasedQueryResultFixture
      
      * decouple IteratorStreamMergedResultTest and ResultSetBasedQueryResultFixture
      
      * decouple OrderByStreamMergedResultTest and ResultSetBasedQueryResultFixture
      
      * decouple OrderByValueTest and ResultSetBasedQueryResultFixture
      
      * decouple LimitDecoratorMergedResultTest and ResultSetBasedQueryResultFixture
      
      * decouple RowNumberDecoratorMergedResultTest and ResultSetBasedQueryResultFixture
      
      * decouple TopAndRowNumberDecoratorMergedResultTest and ResultSetBasedQueryResultFixture
      
      * remove ResultSetBasedQueryResultFixture
      
      * decouple DescribeTableMergedResultTest and QueryResultBasedQueryResultFixture
      
      * remove QueryResultBasedQueryResultFixture
      
      * Decouple hook and route dependency for execute module (#3665)
      
      * decouple RouteUnit and SQLExecutionHook
      
      * decouple RouteUnit and StatementExecuteUnit
      
      * refactor SQLExecuteCallback.executeSQL
      
      * decouple RouteUnit and SQLExecutePrepareCallback
      
      * refactor SQLExecutePrepareCallback.createStatementExecuteUnit()
      
      * parse sqlserver keyword (#3667)
      
      * ci test (#3669)
      
      * Fixes #3671 (#3672)
      
      * remove useless constructor for ShowDatabasesMergedResult
      
      * refactor ShowDatabasesMergedResult
      
      * hide plain column for desc table
      
      * fix test case
      
      * Simplify memory merged result  (#3682)
      
      * for code style
      
      * pull up currentResultSetRow to MemoryMergedResult
      
      * remove useless labelAndIndexMap for MemoryMergedResult
      
      * refactor MemoryMergedResult.init()
      
      * pull up setCurrentResultSetRow to MemoryMergedResult
      
      * remove ShowIndexMergedResult, ShowTablesMergedResult & ShowTableStatusMergedResult
      
      * Fixes #2884 (#3663)
      
      * Fixes #2884
      * Fixes #2884, add test cases;
      * Format adjustment.
      * End file with a blank line.
      
      * load-table-metadata (#3684)
      
      * optimize orchestration datasource (#3685)
      
      * Decouple encrypt and sharding with ResultSet (#3688)
      
      * remove ShardingRule.isRoutingByHint()
      
      * refactor AbstractDataSourceAdapter.close()
      
      * remove useless getter for AbstractConnectionAdapter
      
      * decouple encrypt and sharding from ResultSet
      
      * clear code,delete no use empty judgment code. (#3690)
      
      * change TableMetaDataInitializer's getTables parameter error.
      
      * clear code,delete no use empty judgment code.
      
      * for code style (#3689)
      
      * fixes #3701, refactor ColumnMetaData class, remove notNull & autoIncrement fields. (#3705)
      
      * Standardize of merge engnie (#3709)
      
      * add LocalDataMergedResult
      
      * remove ShowDatabasesMergedResult's constructor of queryResults
      
      * refactor LocalDataMergedResult
      
      * add LocalDataMergedResult & SingleLocalDataMergedResult
      
      * remove LocalMergedResultAdapter
      
      * rename MergedResultMetaData to EncryptorMetaData
      
      * rename ShowOtherMergedResult to TransparentMergedResult
      
      * refactor test case for TransparentMergedResultTest
      
      * refactor SingleLocalDataMergedResultTest
      
      * add MultipleLocalDataMergedResultTest
      
      * add package name of encrypt.dal and encrypt.dql
      
      * rename EncryptMergeEngine to DQLEncryptMergeEngine
      
      * add generic for MemoryMergedResult
      
      * refactor EncryptResultSet's field as final
      
      * add desc table for encrypt only
      
      * refactor desc table for sharding + encrypt
      
      * remove DescribeTableMergedResult from DALMergeEngine
      
      * statement function strtodate (#3718)
      
      * Refactor: update a tiny issue (#3714)
      
      * Statement function base64 aesencrypt (#3726)
      
      * statement function base64 aesencrypt
      
      * statement function base64 aesencrypt
      
      * statement function base64 aesencrypt
      
      * statement function base64 aesencrypt
      
      * #3725, fix MemoryQueryResult wrong data type (#3728)
      
      * Encrypt statement column (#3715)
      
      * encrypt-statement-column
      
      * encrypt statement column
      
      * encrypt statement column
      
      * encrypte statement column
      
      * Check tableRule and throw error information friendly (#3734)
      
      * Encrypt select statement in operator (#3733)
      
      * encrypt statement in operator
      
      * encrypt statement in operator
      
      * encrypt statement in operator
      
      * encrypt statement in operator
      
      * encrypt statement in operator
      
      * encrypt statement in operator
      
      * encrypt statement in operator
      
      * encrypt statement in operator
      
      * encrypt statement in operator
      
      * encrypt statement in operator
      
      * encrypt statement in operator
      
      * encrypt statement in operator
      
      * encrypt statement in operator
      
      * encrypt statement in operator
      
      * encrypt statement in operator
      
      * encrypt statement in operator
      
      * Decouple Rewrite module with sharding and encrypt (#3741)
      
      * move getLogicAndActualTables from BaseShardingEngine to ShardingSQLRewriteEngine
      
      * refactor ShardingSQLRewriteEngine
      
      * add DefaultSQLBuilder and ShardingSQLBuilder
      
      * refactor DefaultSQLBuilder & ShardingSQLBuilder's input params
      
      * add AbstractSQLBuilder
      
      * split Alterable to LogicAndActualTablesAware and RoutingUnitAware
      
      * remove useless toString
      
      * split InsertValuesToken to ShardingInsertValuesToken & EncryptInsertValuesToken
      
      * Add Multilingual Settings (#3708)
      
      * feature[sharding-ui-frontend]:Support multilingual presentation #3266
      
      * refactor[sharding-ui-frontend]:Improve translation content
      
      * [sharding-ui-frontend]:Add Multilingual Settings
      
      * feature[sharding-ui-frontend]:Keep the name unified
      
      * Add new module shardingsphere-sql-rewriter (#3746)
      
      * add new module shardingsphere-sql-rewriter
      
      * rename package from org.apache.shardingsphere.core.rewrite ot org.apache.shardingsphere.sql.rewriter
      
      * rename package from org.apache.shardingsphere.core.rewrite ot org.apache.shardingsphere.sql.rewriter
      
      * add module shardingsphere-sql-rewriter-test
      
      * remove useless jaxb entity
      
      * rename EncryptRewriteAssertionsRootEntityLoader to RewriteAssertionsRootEntityLoader
      
      * refactor EncryptSQLRewriteEngineParameterizedTest
      
      * refactor EncryptSQLRewriteEngineParameterizedTest
      
      * add SQLRewriteEngineTestParameters
      
      * add AbstractSQLRewriteEngineParameterizedTest
      
      * refactor AbstractSQLRewriteEngineParameterizedTest.testParameters
      
      * add SQLRewriteEngineTestParameters.type
      
      * remove useless getter for AbstractSQLRewriteEngineParameterizedTest
      
      * rename SQLRewriteEngineParameterizedTest to SQLRewriterParameterizedTest
      
      * remove useless param from AbstractSQLRewriterParameterizedTest
      
      * rename AbstractSQLRewriterParameterizedTest.createSQLRewriteResults()
      
      * refactor EncryptSQLRewriterParameterizedTest
      
      * refactor EncryptSQLRewriterParameterizedTest
      
      * refactor pom of shardingsphere-sql-rewriter
      
      * use RelationMetas instead of TableMetas in rewriter module
      
      * add InsertValue
      
      * add ShardingInsertValue
      
      * decouple sharding-core-common & shardingsphere-sql-rewriter
      
      * rename package from org.apache.shardingsphere.sql.rewriter.feature to org.apache.shardingsphere.sql.rewriter
      
      * replace removed datasourceInfo
      a41f4370
    • S
      mysql statement function (#3753) · 635b84f2
      SteNicholas 提交于
      635b84f2
  23. 30 11月, 2019 1 次提交
  24. 08 11月, 2019 1 次提交
    • L
      Make parser module to a independent module (#3476) · 1bdb7a17
      Liang Zhang 提交于
      * move shrarding-core-parse to sql-parse module
      
      * rename shrarding-core-parse-xxx to sql-parse-xxx
      
      * update pom
      
      * rename package name from org.apache.shardingsphere.core.parse to org.apache.shardingsphere.sql.parser
      
      * decouple SQLParsingException & ShardingException
      
      * rename sql-parser to shardingsphere-sql-parser
      
      * add database type for SQL parser
      
      * remove database type for SQL parser
      
      * remove useless feature type of RuleDefinitionFileConstant.getFillerRuleDefinitionFile
      
      * decouple RuleDefinitionFileConstant and DatabaseType
      
      * decouple SQLParserFactory and DatabaseType
      
      * remove SQLParserFactory.DATABASE_TYPE_NAMES
      
      * decouple SQLParserEngine and DatabaseType
      
      * decouple SQLStatementFillerEngine and DatabaseType
      
      * use SQLParseEngineFactory to get SQLParseEngine instance
      
      * decouple DatabaseType from SQLParseEngine and SQLParseKernel
      
      * decouple sharding-core-api from shardingsphere-sql-parser-spi
      
      * decouple DatabaseType from SQLParseEngineFactory
      
      * add shardingsphere-spi module
      
      * adjust package of shardingsphere-spi
      
      * rename BaseAlgorithmFactoryTest to TypeBasedSPIServiceLoaderTest
      
      * rename fixture of test case
      
      * remove useless ComplexKeysShardingAlgorithmFixture
      
      * remove sharding-core-common dependency from shardingsphere-sql-parser-test
      
      * remove useless rule
      
      * remove useless dependency from sharding-core-preprocessor
      1bdb7a17
  25. 04 11月, 2019 1 次提交
  26. 29 10月, 2019 1 次提交
  27. 26 10月, 2019 1 次提交
  28. 16 10月, 2019 1 次提交
  29. 21 9月, 2019 1 次提交
  30. 09 8月, 2019 1 次提交